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!
AD
Administrator
Syncfusion Team
May 28, 2008 03:08 PM UTC
Your code snippet only cancels the action on GridResizeCellsReason.MouseMove. Try also cancelling it on GridResizeCellsReason.HitTest.
S_
Stephane _
May 28, 2008 04:30 PM UTC
It's working great. Thanks!