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. Image for the cookie policy date

Column size changed event

Hi, I''m looking for an event in a GDBG that tells me when a user has changed a column width. The overall goal is to resize row heights, to ensure that all cell contents are displayed when a column is resized. Alternatively, if there is a setting to always auto resize row heights, that would work too. Thanks, Doug Lind

1 Reply

AD Administrator Syncfusion Team February 11, 2004 03:02 PM UTC

One way you can do this is to set a flag in the ResizingCols event, and then resize teh rowheights in MouseUp if the flag is set.
private bool resized = false;
private void gridDataBoundGrid1_ResizingColumns(object sender, GridResizingColumnsEventArgs e)
	if(e.Reason == GridResizeCellsReason.MouseDown)
		this.resized = true;

private void gridDataBoundGrid1_MouseUp(object sender, MouseEventArgs e)
		this.resized = false;

Live Chat Icon For mobile
Up arrow icon