JS
Jeba S
Syncfusion Team
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
{
e.Cancel=true;
}
}
Kindly let us know if this helps.
Best Regards,
Jeba.