Your grid control is a very powerfull control.
Yet I wished it had a simple way to notify the user when a row is clicked.
Today I need to do something like this…
Private Sub gridControl1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles gridControl1.DoubleClick
Dim hi As DevExpress.XtraGrid.Views.BandedGrid.ViewInfo.BandedGridHitInfo = advBandedGridView1.CalcHitInfo((IIf(TypeOf sender Is Control, CType(sender, Control), Nothing)).PointToClient(Control.MousePosition))
If hi.RowHandle >= 0 Then
ShowDataRow(advBandedGridView1.GetDataRow(hi.RowHandle), "", Color.White)
Else
If advBandedGridView1.FocusedRowHandle >= 0 Then
ShowDataRow(advBandedGridView1.GetDataRow(advBandedGridView1.FocusedRowHandle), "Focused Row: ", Color.Yellow)
Else
ShowDataRow(Nothing, "Empty…", Color.DeepSkyBlue)
End If
End If
End Sub
Proposed Solution:
It would be cool if I had this event…
Private Sub gridControl1_DataRowClicked(ByVal sender As Object, ByVal e As System.RowClickedEventArgs) Handles gridControl1.DataRowClicked
Dim row As DataRow = CType(e.data, DatRow)
…
End Sub
This event should only be fired when a row is clicked, not when no rows/"Nothing" is clicked.
Hope you get what I mean. :o)
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
The following events has been added to GridView
RowClick, RowCellClick