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

re-bounding scrollbar

Thread ID:

Created:

Updated:

Platform:

Replies:

30918 Jun 27,2005 04:03 PM UTC Jun 27,2005 06:19 PM UTC WinForms 1
loading
Tags: GridControl
Lan Mo
Asked On June 27, 2005 04:03 PM UTC

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

Administrator [Syncfusion]
Replied On 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);
	}
}

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.

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

;