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

GridControl One Column Resize

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

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 5.202.0.25.

Thanks!



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!


CONFIRMATION

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.

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

;