Posted 26 March 2018, 4:07 am EST
Dear All,
I’m wondering how to get the actual Row-Datas if I “walk” through the grid via Down- and Up Arrow.
A short VB.NET Statement would be helpful.
Best regards
Stephan
Forums Home / ComponentOne / WinForms Edition
Posted by: s.wortmann on 26 March 2018, 4:07 am EST
Posted 26 March 2018, 4:07 am EST
Dear All,
I’m wondering how to get the actual Row-Datas if I “walk” through the grid via Down- and Up Arrow.
A short VB.NET Statement would be helpful.
Best regards
Stephan
Posted 27 March 2018, 1:16 am EST
Hello,
You can use the following code in “KeyUP” event of C1TrueDBGrid to achieve your requirement:
Dim obj As New List(Of Object)
If e.KeyCode = Keys.Up Or e.KeyCode = Keys.Down Then
For I As Integer = 0 To C1TrueDBGrid1.Columns.Count - 1
obj.Add(C1TrueDBGrid1(C1TrueDBGrid1.Row, I))
Next
End If
Hope it helps.
Thanks,
Mohit