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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hide Columns

Thread ID:

Created:

Updated:

Platform:

Replies:

30599 Jun 21,2005 05:34 AM UTC Jun 21,2005 10:48 AM UTC WinForms 2
loading
Tags: GridControl
Prathima Venkobachar
Asked On June 21, 2005 05:34 AM UTC

Hi, I am using gridgroupingControl. I hide columns by reducing the size of the column.I will not be able to open it back. If we try hard and double click it will open but again, this doesn''t work always. Thanks, Prathima

Administrator [Syncfusion]
Replied On June 21, 2005 08:05 AM UTC

Try handling the event: this.gridGroupingControl1.TableControlResizingColumns += new GridTableControlResizingColumnsEventHandler(gridGroupingControl1_TableControlResizingColumns);
private void gridGroupingControl1_TableControlResizingColumns(object sender, GridTableControlResizingColumnsEventArgs e)
{
	if(e.Inner.Reason == GridResizeCellsReason.DoubleClick) 
	{
		e.TableControl.Model.ColWidths.ResizeToFit(GridRangeInfo.Col(e.Inner.Columns.Right+1));
		e.Inner.Cancel = true;
	}
}

Prathima Venkobachar
Replied On June 21, 2005 10:48 AM UTC

It works fine.Thanksa lot !! Prathima

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

;