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.

Disable Column Sizing on Double Click

Thread ID:

Created:

Updated:

Platform:

Replies:

1238 Oct 7,2002 08:28 AM Oct 7,2002 10:09 AM Windows Forms 2
loading
Tags: GridControl
Rachel VanWinkle
Asked On October 7, 2002 08:28 AM

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

Administrator [Syncfusion]
Replied On October 7, 2002 09: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

Rachel VanWinkle
Replied On October 7, 2002 10:09 AM

Thanks for the help. Its much appreciated!

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.

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.

;