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

Avoid showing hidden cols and changing width

Thread ID:





18163 Aug 25,2004 05:57 AM UTC Aug 25,2004 11:21 AM UTC WinForms 2
Tags: GridControl
Mario Cadelli
Asked On August 25, 2004 05:57 AM UTC

Hi, In the GridControl I have in my app, I have just noticed that when I double-click on a column header when the focus is on the separation between 2 columns (the cursor is the resize one) I have 2 unexpected behaviors. 1. the column is resize to its initial width 2. all hidden columns after that one are displayed How can I prevent those behaviors? The ResizeRowsBehavior property = ResizeSingle, OutlineHeaders, OutlineBounds Thanks Mario

Administrator [Syncfusion]
Replied On August 25, 2004 06:51 AM UTC

This behavior is by design. If you do not want it, you can try handling the ResizingCols event and cancel things when it is a doubleclick.
’ add the handler
AddHandler Me.GridControl1.ResizingCols, Addressof GridResizingCols
Private Sub GridResizingCols(sender As Object, e As GridResizingColsEventArgs)
	If e.Reason = GridResizeCellsReason.DoubleClick Then
		e.Cancel = True
	End If
End Sub ’GridResizingRows

Mario Cadelli
Replied On August 25, 2004 11:21 AM UTC

Ok, it''s working fine. Thanks a lot Clay ! Mario


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