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

how to avoide resizing of rows and columns

Thread ID:





61418 May 25,2007 10:19 AM UTC May 25,2007 11:55 AM UTC WinForms 1
Tags: GridControl
swaminath dhavane
Asked On May 25, 2007 10:19 AM UTC

i am using grid grouping control and i am dispaying rows ,and i want to avoiide resizing of grid columns and rows.

Jeba S [Syncfusion]
Replied On May 25, 2007 11:55 AM UTC

Hi Swaminath,

You need to subscribe the ResizingColumns and ResizingRows event handlers and set e.Cancel = true to avoid resizing.

this.gridGroupingControl1.TableControl.ResizingColumns +=new GridResizingColumnsEventHandler(TableControl_ResizingColumns);

private void TableControl_ResizingColumns(object sender, GridResizingColumnsEventArgs e)
if( e.Columns.Right == 2) //Prevent resizing for a particular column
e.Cancel = true;

this.gridGroupingControl1.TableControl.ResizingRows+=new GridResizingRowsEventHandler(TableControl_ResizingRows);
private void TableControl_ResizingRows(object sender, GridResizingRowsEventArgs e)
if(e.Rows.Bottom==3) //Prevent resizing for a particular row

Kindly let us know if this helps.

Best Regards,


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