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

GridControl One Column Resize

Thread ID:





74023 May 28,2008 03:04 PM UTC May 28,2008 04:30 PM UTC WinForms 2
Tags: GridControl
Stephane _
Asked On May 28, 2008 03:04 PM UTC


I have a GridControl and I only want one column to be resized. The one at the end of my FrozenColumn. The way I found to do it is like this:

Private Sub BaseDataGrid_ResizingColumns(ByVal sender As Object, ByVal e As GridResizingColumnsEventArgs) Handles MyBase.ResizingColumns

If e.Reason = GridResizeCellsReason.MouseMove Then
If e.Columns.Left <> Me.Cols.FrozenCount Then
e.Cancel = True
End If
End If

End Sub

But this way, the user still sees the dragging icon on the other columns. Is it possible to remove the icon on all but the one I want to resize?

There might be an other way than using an event like I did.

I'm using


Administrator [Syncfusion]
Replied On May 28, 2008 03:08 PM UTC

Your code snippet only cancels the action on GridResizeCellsReason.MouseMove. Try also cancelling it on GridResizeCellsReason.HitTest.

Stephane _
Replied On May 28, 2008 04:30 PM UTC

It's working great. Thanks!


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

or the page will be automatically redirected to 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