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.
ADAdministrator Syncfusion Team November 30, 2006 03:56 AM UTC
Hi James,
Use the GridColumnDescriptor.Width property to set the width of the column in a grid. And you need to subscribe the ResizingColumns event and set e.Cancel = true to handle it. Here is a code snippet to show this.
//Set the width of the first column to 200. this.gridGroupingControl1.TableDescriptor.Columns[1].Width = 200; this.gridGroupingControl1.TableControl.ResizingColumns +=new GridResizingColumnsEventHandler(TableControl_ResizingColumns);