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.
Hi,
I''m using a GridDataBoundGrid and want to set specific width to each column. I tried
Grid.Model.ColWidths[1] = 100 :did not work
and also
Grid.SetColWidth[1,2,new int[]{100,100}): did not work..
What is the solution?
ADAdministrator Syncfusion Team January 20, 2004 08:20 AM UTC
In addition to setting grid.Model.ColWidths, make sure you set grid.AllowResizeToFit = false. If this is set true (the default setting), the grid will try to autosize the colwidths based on the header text, and this will step on your explicit sizing.