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.
Unfortunately, activation email could not send to your email. Please try again.

ColResize constant update

Thread ID:





34142 Sep 2,2005 11:53 AM Sep 2,2005 12:23 PM Windows Forms 1
Tags: GridControl
Clinton Nielsen
Asked On September 2, 2005 11:53 AM

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 12:23 PM

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;
		e.Cancel = true;


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.

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.