We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Prevent resizing of columns

Thread ID:

Created:

Updated:

Platform:

Replies:

42873 Apr 7,2006 01:22 PM Apr 10,2006 12:32 AM Windows Forms 1
loading
Tags: GridControl
Stephen
Asked On April 7, 2006 01:22 PM

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.

Administrator [Syncfusion]
Replied On April 10, 2006 12:32 AM

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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;