Event when column width changed

Hi,

I need to handle the event when column width is changed in the grid grouping control.
I used TableControlResizingColumn event but this event get fires every time when mouse is moved over grid. i want event to fire only when column is resized....

Please help
Thanks

1 Reply

AD Administrator Syncfusion Team March 7, 2007 03:43 PM UTC

Hi,

To detect the column width changes in a GroupingGrid, you need to handle the ColWidthsChanged event of the GridTable. Please find the code below.

this.gridGroupingControl1.TableModel.ColWidthsChanged +=new GridRowColSizeChangedEventHandler(TableModel_ColWidthsChanged);

private void TableModel_ColWidthsChanged(object sender, GridRowColSizeChangedEventArgs e)
{
Console.WriteLine( e.From +":::" + e.To +" ===>" + e.SavedValues[0]);
}

Best regards,
Haneef

Loader.
Up arrow icon