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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Prevent resizing of columns

Thread ID:





42873 Apr 7,2006 05:22 PM UTC Apr 10,2006 04:32 AM UTC WinForms 1
Tags: GridControl
Asked On April 7, 2006 05:22 PM UTC

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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon