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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Identifying colunm in Syncfusion::Windows::Forms::Grid::Grouping::GridTableControlResizingColumnsEventHandler

Thread ID:

Created:

Updated:

Platform:

Replies:

48057 Aug 18,2006 04:25 AM UTC Aug 21,2006 09:45 AM UTC WinForms 3
loading
Tags: GridControl
Bill Langlais
Asked On August 18, 2006 04:25 AM UTC

I am trying to track changes to column widths in a GridGroupingControl at any of 5 nested tables. The Syncfusion::Windows::Forms::Grid::Grouping::GridTableControlResizingColumnsEventHandler traps the event and I can use Reason to know that the column is changing width (MouseUp, DoublClick and RestDefault) and I can use TapleControl->TableDescriptor->Name to know which table the user is in but I cannot figure out how to identify the column that is being resized.

Thanks!
WJL

Administrator [Syncfusion]
Replied On August 18, 2006 05:41 AM UTC

Hi Bill,

Please try this code snippet to get the column information from GridTableControlResizingColumnsEventHandler. Here is a code snippet.

int index = e.TableControl.TableDescriptor.ColIndexToField(e.Inner.Columns.Left);
Console.WriteLine("VisibleCoulmn Collection => Column Name : " + e.TableControl.TableDescriptor.VisibleColumns[index].Name );
Console.WriteLine("Column Collection => Column Name : " + e.TableControl.TableDescriptor.Columns[index].Name );

Let me know if this helps.
Best Regards,
Haneef

Bill Langlais
Replied On August 18, 2006 01:17 PM UTC

Hi,

That worked fine. It looks like the one I want to use is VisableColumn because that take s into consideration any hidden column os if columns have been repositioned. Is there a reason you would use the other Column?

Administrator [Syncfusion]
Replied On August 21, 2006 09:45 AM UTC

Hi Bill,

By default all the entries in the Column collection will be there in the VisibleColumn collection too, but when you want to hide some columns you can remove it from the visiblecolumn collection.

Thanks,
Rajagopal

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.

Warning Icon 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.Close Icon

;