ColResize constant update

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.

1 Reply

AD Administrator Syncfusion Team 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;
	}
}

Loader.
Up arrow icon