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


MC Mario Cadelli August 25, 2004 11:21 AM UTC

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

Loader.
Up arrow icon