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. Image for the cookie policy date
close icon

Hide Columns

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

2 Replies

AD Administrator Syncfusion Team 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;
	}
}


PV Prathima Venkobachar June 21, 2005 10:48 AM UTC

It works fine.Thanksa lot !! Prathima

Loader.
Live Chat Icon For mobile
Up arrow icon