Prevent resizing of columns

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.

1 Reply

AD Administrator 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.

Loader.
Up arrow icon