GGC.TableControlResizingColumns Doesn''t Fire *After* Columns Have Been Resized.

Hi,

I'm trying to find the event that tells me when a user has *already* resized columns on the screen. This way, I can then access the values of the Columns which will have already been set by the action and propagate that to the column sizes for inner tables.

void GroupingGrid_TableControlResizingColumns(object sender, GridTableControlResizingColumnsEventArgs e)
{
if (e.Inner.Reason == GridResizeCellsReason.MouseUp)
{
GetTableDescriptor("ChildTable").Columns = TableDescriptor.Columns;

}
}

This code gets called at the correct time (sort of) but the values of the columns widths are incorrect.

Is there an event which will fire after these values have been set?

2 Replies

AD Administrator Syncfusion Team March 14, 2007 04:35 PM UTC

Hi Eric,

You can try the TableModel.ColWidthChanged event to detect after column widths for a specified range of column have been changed.

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

void TableModel_ColWidthsChanged(object sender, GridRowColSizeChangedEventArgs e)
{
Console.WriteLine("changed :" + e.SavedValues[0]);
}

Best regards,
Haneef


EW Eric Weinschenk March 14, 2007 06:10 PM UTC

Thanks, your solution worked great.

Loader.
Up arrow icon