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.

Hide Columns

Thread ID:

Created:

Updated:

Platform:

Replies:

30599 Jun 21,2005 01:34 AM Jun 21,2005 06:48 AM Windows Forms 2
loading
Tags: GridControl
Prathima Venkobachar
Asked On June 21, 2005 01:34 AM

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 04:05 AM

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 06:48 AM

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.

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.

;