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.
I have a form with GridGroupingControl.
I populate the grid with bounding its datasource
to a table with all columns data(fetched by SELECT * FROM table).
so the grid displays all fields( columns) with default fields order from database.
What I want to do is:
After the grid displayed all fields,
I wnat to allow user to pickup any fields and orders(I created a fields pickup form), the grid will display only selected fields in selected order. In other words, How to change display columns and orders without re-retrieve data ?
Any idea or samples?
regards,
Lan
ADAdministrator Syncfusion Team May 26, 2005 08:25 PM UTC
The order in which the columns are displayed is determined by the TableScriptor.VisibleColumns collection. So, you need to add columns to this collection in teh order you want to see them. This will dertermine the order of teh column in the grid.
Check out the CategoryView example. It shows how you can save and load the layout schema of a GridGroupingCOntrol as a XML file.
Here is also a forum thread on how to extend this if you need to do so.
http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=17634
LMLan Mo May 30, 2005 01:13 PM UTC
Thanks,
I got my code work well now.
>The order in which the columns are displayed is determined by the TableScriptor.VisibleColumns collection. So, you need to add columns to this collection in teh order you want to see them. This will dertermine the order of teh column in the grid.
>
>Check out the CategoryView example. It shows how you can save and load the layout schema of a GridGroupingCOntrol as a XML file.
>
>Here is also a forum thread on how to extend this if you need to do so.
>
>http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=17634
>