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 01:33 PM UTC

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 02:09 PM UTC

Thanks for the help. Its much appreciated!

Loader.
Up arrow icon