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


Thread ID:





4416 May 12,2003 11:02 AM UTC May 12,2003 02:44 PM UTC WinForms 3
Tags: GridControl
Alexandre Nicholas
Asked On May 12, 2003 11:02 AM UTC

This event (QueryColWidth) is raised even when mouse is moving on the grid. I don't understand why it does that. Is there another event that can replace this one as the Resizingcolumns ? i have to fill the last column to the end of the edge thanks

Administrator [Syncfusion]
Replied On May 12, 2003 12:35 PM UTC

I think QueryColWidth is probably the only event you need to size the last column to fill the grid. Here is a little sample.

Alexandre Nicholas
Replied On May 12, 2003 01:39 PM UTC

But, whit does this event is raised with an mouse mouve move ? i think it's a lot of call for nothing. do i am wrong ?

Administrator [Syncfusion]
Replied On May 12, 2003 02:44 PM UTC

Yes, QueryColWidth is called as you move the mouse to get the size of the columns so the grid can determine what cell the mouse is over. Normally, this computing is neglible in the process of moving the mouse. It also makes the column widths completely dynamic, so they can be changed on the fly in a completely arbitrary way, and you will see the changes reflected immediately. If you want to do this deterministically, then it is a little more cumbersome to handle things like your user sizing a column. With the QueryColWidth implementation, all this happens completely dynamically. But if you are going to try to explicitly set column widths, then it takes some effort. You should handle both the grid SizeChanged event, and the GridRsizingColumns event. In both places you would have to execute code to compute and set the width of the last column, based on the size of the other columns. In ResizingColumns, you would only want to do this if the e.Reason is GridResizeCellsReason.MouseUp (ignoring the other calls to this event).


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

Live Chat Icon For mobile
Live Chat Icon