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.
How do I prevent the resizing of a column by the user? I tried handling the GridColumnDescriptorCollection.Changing event, checking if the property is "Width", and if so, doing e.Cancel = true. I set a breakpoint at e.Cancel = true and it does run the code, but for some reason, the column still resizes. Is there anything I''m missing or is there another way to do this? Thanks.
ADAdministrator Syncfusion Team April 10, 2006 04:32 AM UTC
Hi Stephen,
Resizing of a column can be prevented by handling the gridGroupingControl1.TableControlResizingColumns event and setting the e.Inner.Cancel to true.
Regards,
Calvin.