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

Grid Column Header Width

Thread ID:





37486 Nov 23,2005 06:17 AM UTC Nov 23,2005 09:11 AM UTC WinForms 1
Tags: GridControl
Lokesh Luthra
Asked On November 23, 2005 06:17 AM UTC

Incident History: [Created on 11/23/2005 1:15:29 AM by: ] Product Version : .NET Framework Version : 1.1 I am using the Grid and in that Grid I can increase or Decrease the headers Width by CLICKING AND DRAGGING the Headers . But I want that I Could Click and Drag that Header But Not beyond some measure . For Example I am using SyncfusionGrid.ColWidths().Item(1) = 65 The above piece of code will set the width of the Column to 65 . Now If I am reducing the Width at RUN TIME by Clicking and dragging it Should not Go Beyond 30 . I hope I am able to make the Question understood.Please send me a code snippet if there is the solution for the same .

Administrator [Syncfusion]
Replied On November 23, 2005 09:11 AM UTC

You can use the grid.ResizingColumns event.
private void gridControl1_ResizingColumns(object sender, GridResizingColumnsEventArgs e)
	if(e.Reason == GridResizeCellsReason.MouseMove && e.Width < 30)
		e.Cancel = true;
If you want to handle things differently depending upon the column, you would also have to check the e.Columns property to see what column(s) is being resized.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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