The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
We''re trying to write a configuration tool, that will let our users configure what columns they want to see in GDBG.
We do it by generating a string array that we pass to LayoutColumns() function to each HierarchyLevel (we have more that one level).
However we couldn''t find a way to get the current layout of the grid.
Basically, if we pass the array (including "." and "-") to the LayoutColumns() function, can we get it back somehow?
If it is possible, can we also get the width of "-" columns (in the first row)?
ADAdministrator 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.
ADAdministrator 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.