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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

57952 Mar 14,2007 11:56 AM Mar 14,2007 02:10 PM Windows Forms 2
loading
Tags: GridControl
Eric Weinschenk
Asked On March 14, 2007 11:56 AM

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?

Administrator [Syncfusion]
Replied On March 14, 2007 12:35 PM

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

Eric Weinschenk
Replied On March 14, 2007 02:10 PM

Thanks, your solution worked great.

CONFIRMATION

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.

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.

;