Maintenance Form question...


Author
Message
StarkMike
StarkMike
Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)
Group: Forum Members
Posts: 436, Visits: 944
I love the Maintenance Form template and would like to use it with a grid. Was it designed for that? I know it works well when you drop textboxes and comboboxes on it and only want to view one record at a time but I'd like to use a grid and still retain the toolbar functionality.



I came across this property, AllowMultipleModifiedRecords, for the MaintenanceToolstrip and wondered if setting this to true was all i needed to do.



The second part of my question is, aside from writing code behind the form, how do i get a grid to enable/disable in conjunction with the maintenance form template. I'm assuming that there might be an interface i'd have to implement or I might have to create a custom class and Inherit a grid... I'm just curious. BigGrin
Reply
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Yes, you can use a grid with the maintenance form... just remember to use a BusinessBindingSource.  As for enabling/disabling the grid... you just need to handle the EditingStateChanged event of the bound business object and set the Enabled property of the depending upong the editing state of the business object... Idle, Editing, or Adding.

Me.myGrid.Enabled = (Not e.EditingState = EditingState.Idle)

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search