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

Disable Column Sizing on Double Click

Hi, I am trying to figure out how to disable the behavior that occurs when double clicking on the divider between two column headers. Doing this causes columns to resize, which i do not want to do. I just want to ignore the fact that the double click happened. It seems this should be a property somewhere but i cannot find it... Thanks

2 Replies

AD Administrator Syncfusion Team October 7, 2002 08:33 AM

There is no property that controls this, but you can get at it from the ResizingColumns event. Check if the reason is a double click, andif so, cancel the sizing.
 Private Sub GridControl1_ResizingColumns(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Grid.GridResizingColumnsEventArgs) Handles GridControl1.ResizingColumns
        If (e.Reason = GridResizeCellsReason.DoubleClick) Then
            e.Cancel = True
        End If
    End Sub


RV Rachel VanWinkle October 7, 2002 09:09 AM

Thanks for the help. Its much appreciated!

Loader.
Live Chat Icon For mobile
Up arrow icon