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've tried to set a column header title in a GridDataBoundGrid with no luck. What is the correct procedure? Also, is there a flag that can be set to turn off sorting on a column?
ADAdministrator Syncfusion Team January 21, 2003 10:16 PM UTC
You can turn off the sorting with
this.gridDataBoundGrid1.SortBehavior = GridSortBehavior.None;
If you have added GridBoundColumns to your grid, you can set the HeaderText property for the particular column. If you haven't added GridBoundColumns, you can use the Binder.InternalColumns in a similar manner.
this.gridDataBoundGrid1.Binder.InternalColumns[1].HeaderText = "col2 header";
KJKenneth JohnsonJanuary 22, 2003 10:41 AM UTC
Both of the answers worked, but I was trying to turn sorting off for one column and allow for the rest. Is this possible?
ADAdministrator Syncfusion Team January 22, 2003 04:50 PM UTC
One way to avoid sorting a particular columns is to derive from GridDataBoundGrid, and override either OnCellClick or OnCellDblClick depending on how you are sorting. If you look at this forum thread, there is code that that places a chceckbox in a header column. The thread also discusses how to avoid teh sorting of that column.
http://www.syncfusion.com/forums/message.asp?MessageID=2427