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,
How can I set the width of a checkbox column inside a GDBG just wide enough to hold the checkbox without any extra white space around the checkbox?
Thanks.
ADAdministrator Syncfusion Team June 1, 2004 03:52 PM UTC
You set the width of a particular column using code like
this.grid.Model.ColWidths[2] = 30;
If you are doing it while the grid is not visible, then you should also set:
this.grid.AllowResizeToFit = false;
to turn off the grid default sizing so it does not interfere with your explicit sizing.