CB
Clay Burch
Syncfusion Team
September 20, 2002 01:53 PM UTC
To get the index of the clicked column header in the grid's DoubleClick event, you can use code such as:
Dim pt As Point = GridDataBoundGrid1.PointToClient(Control.MousePosition)
Dim row, col As Integer
GridDataBoundGrid1.ViewLayout.PointToClientRowCol(pt, row, col, True)
col = col + GridDataBoundGrid1.LeftColIndex - 1 ' absolute col
In the 1.0.2.4, release the CellDoubleClick does not fire because of a coding error in the OnDoubleClick method. If you have access to the source, you can see that method is firing the click event instead of the DoubleClick event. This is corrected in the 1.1.0.0 release due out next week.