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.
In my databoundgrid I wanna extend a column to fill the client area. I tried the sample provided in the Thread "Extend most right column".
All works fine if the user doesn't change the order of the columns. How can I extend the column which represents a specific column from the datatable?
TIA
Peter
ADAdministrator Syncfusion Team March 29, 2003 09:12 AM UTC
You can get the 'special' column index from its name using Me.GridDataBoundGrid1.Binder.NameToColIndex. So, in your QueryColWidth handler, instead of comparing e.Index to Grid.ColCount, compare it to the specialIndex. Also, instead of using GetTotal to add up the columns from 0 to Grid.ColCount-1, you would have to loop through all columns and add up the colwidths (grid.Model.ColWidths[i]) except the for i equal the special column.