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

Avoid showing hidden cols and changing width

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

2 Replies

AD Administrator Syncfusion Team 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


MC Mario Cadelli August 25, 2004 07:21 AM

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

Loader.
Live Chat Icon For mobile
Up arrow icon