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

How to restrict the columns from being removed from the GridControl?

To restrict the columns from being deleted, you can cancel the ColsRemoving event. In the given example, the deletion of columns is controlled through a CheckBox via the ColsRemoving event.

C#

VB

 

In the following screenshot, to disable the column from being deleted, you can enable the check box. This restricts the column from being removed.

Sample Links:

Deleting Column-C#

Deleting Column-VB

Article ID: Published Date: Last Revised Date: Platform: Control:
4334 04/13/2015 04/13/2015 Windows Forms GridControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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