How to prevent resizing a specific column in GridControl
9 Dec 2019 / 1 minute to read
Handle ResizingColumns event and cancel the resizing for specific columns.
//Handles ResizingColumns event.
private void grid_ResizingColumns(object sender, GridResizingColumnsEventArgs e)
{
//Disables Column Resizing for the third column from the Right.
if(e.Columns.Right == 2)
{
e.Cancel = true;
}
}
'Handles ResizingColumns event.
Private Sub grid_ResizingColumns(ByVal sender As Object, ByVal e As GridResizingColumnsEventArgs)
//Disables Column Resizing for the third column from the Right.
If e.Columns.Right = 2 Then
e.Cancel = True
End If
End Sub
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page