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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ColResize constant update

Thread ID:

Created:

Updated:

Platform:

Replies:

34142 Sep 2,2005 03:53 PM UTC Sep 2,2005 04:23 PM UTC WinForms 1
loading
Tags: GridControl
Clinton Nielsen
Asked On September 2, 2005 03:53 PM UTC

How would I make it so that resizing a column causes the new column size to be visually updated constantly in the grid - as the user is dragging the column, instead of after the user is finished dragging the column? What I need is kind of like the ThumbTrack = true behavior for the scrollbar. Same behavior, but manifest during column resizing. Thank you.

Administrator [Syncfusion]
Replied On September 2, 2005 04:23 PM UTC

Try setting this property and subscribing to this event. this.gridControl1.Model.Options.ResizeColsBehavior = GridResizeCellsBehavior.ResizeSingle; this.gridControl1.ResizingColumns += new GridResizingColumnsEventHandler(gridControl1_ResizingColumns);
private void gridControl1_ResizingColumns(object sender, GridResizingColumnsEventArgs e)
{
	if(e.Reason == GridResizeCellsReason.MouseMove)
	{
		this.gridControl1.ColWidths[e.Columns.Left] = e.Width;
		this.gridControl1.ResetVolatileData();
		e.Cancel = true;
	}
}

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

;