FullRowSelect DATAGRID-Event

jtoutou

Active member
Joined
Oct 11, 2008
Messages
26
Programming Experience
Beginner
hello to everyone..
I have a datagrid and i change the selection mode to FullRowSelect.
outside the datagrid i have a label in which i display a value from a datagrid cell.
VB.NET:
'me.label.text=myDatagridview.item(col index,row index).value
Private Sub MyDataGridView_KeyUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles myDataGridView.KeyUp
dim i as integer
i = Me.myDataGridView.CurrentRow.Index
me.label.text=myDatagridview.item(4,i).value '4 is the column
i use an event so anytime i use the arrows (up/down) , the label change.
when moving with the down arrow to the last row i need the current row index to be the first one.how can i do that
 
Last edited:
Back
Top