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.
Up arrow icon