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.

Avoid showing hidden cols and changing width

Thread ID:





18163 Aug 25,2004 01:57 AM Aug 25,2004 07:21 AM Windows Forms 2
Tags: GridControl
Mario Cadelli
Asked On August 25, 2004 01:57 AM

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 02:51 AM

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 07:21 AM

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.

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.