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. Image for the cookie policy date

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.
Live Chat Icon For mobile
Up arrow icon