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

Disable Column Sizing on Double Click

Thread ID:





1238 Oct 7,2002 12:28 PM UTC Oct 7,2002 02:09 PM UTC WinForms 2
Tags: GridControl
Rachel VanWinkle
Asked On October 7, 2002 12:28 PM UTC

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

Rachel VanWinkle
Replied On October 7, 2002 02:09 PM UTC

Thanks for the help. Its much appreciated!


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon