Sub-classed Infragistcs Grid with layout saving feature


Author
Message
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)Strategic Support Team Member (3.5K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
This is a simple sample on a subclassed UltraGrid that will save changes made by the user on its columns' order, widths, groups, etc, into a XML file.

In order to save it, there is a base form that will iterate through all controls and find any grid inherited from your base grid and use its DisplayLayout method.

Also, a Datasource issue is taken care of at this moment, when closing the form with an UltraGrid in it would throw exceptions at certain situations.

The layout Load is dealt with at the grid's own InitializeLayout.

Attachments
UltraGridSample.zip (272 views, 132.00 KB)
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