AD
Administrator
Syncfusion Team
April 26, 2005 01:12 AM UTC
The width you can get by indexing grid.Model.ColWidths.
But the grid does not save the string array that was passed into LayoutColumns. Instead, it processes setting thing like rowcount and covered cells. You might consider creating a method that wraps the call to LayoutColumns, and in your method you save a copy of these string array for your use. If you wanted to encapsulate this functionality in teh grid, you can derive the grid and expose this wrapped LayoutFunction method as a public method of the derived grid. Then your users would call your public method instead of calling LayoutColumns directly.
AD
Administrator
Syncfusion Team
April 26, 2005 02:27 AM UTC
What you describe is very similar to what we do.
Yet it''s only enough for the order of the columns.
We''re trying to create an interface that will remember widths as well.
Column width indexer (ColWidth) is available to the model only, and applies to the top hierarchy level''s list of mappings.