re-bounding scrollbar

Hello, in GGC, What should be reset when I rebound datatable to GGC datasource. On my GGC form, when I rebound, the horizontal scroolbar disappears, though there are a lot of columns need to be scrolled to see them. and the columns'' width become equal. I what to auto-fit the width. Is there function for double clicking the boundery between columns header to auto-fit column''s width? Thanks, Lan

1 Reply

AD Administrator Syncfusion Team June 27, 2005 06:19 PM UTC

This sample shows how to rebind the grid. \Syncfusion\Essential Studio\3.2.1.0\Windows\Grid.Windows\Samples\Grouping\GridGroupingRebind To resize on a double click, you can try handling teh TableControlResizingCols event.
private void gridGroupingControl1_TableControlResizingColumns(object sender, GridTableControlResizingColumnsEventArgs e)
{
	if(e.Inner.Reason == GridResizeCellsReason.DoubleClick)
	{
		e.TableControl.Model.ColWidths.ResizeToFit(e.Inner.Columns);
	}
}

Loader.
Up arrow icon