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.
Syncfusion Feedback

Column Resizing

Thread ID:

Created:

Updated:

Platform:

Replies:

66737 Aug 1,2007 10:05 PM UTC Aug 1,2007 10:36 PM UTC Windows Forms 1
loading
Tags: Grouping
Abhishek Shivalingaiah
Asked On August 1, 2007 10:05 PM UTC

Syncfusion 5.1
VS 2005

In the column resizing event how do I know which column is being resized?

Thanks

haneefm [Syncfusion]
Replied On August 1, 2007 10:36 PM UTC

Hi Shek,

You can use this code to get column name in a TableControlResizingColumns event.

private void gridGroupingControl1_TableControlResizingColumns(object sender, GridTableControlResizingColumnsEventArgs e)
{
int iColIndex = e.Inner.Columns.Left;
int iField = e.TableControl.TableDescriptor.ColIndexToField(iColIndex);
if( iField >= 0 )
Console.WriteLine( e.TableControl.TableDescriptor.Columns[iField].Name);
}

Best regards,
Haneef

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

;