How Do you do this (VB6)
Me.DataGrid1.Columns(1).Value
In Vb.net to get the current row value.
Cheers
Printable View
How Do you do this (VB6)
Me.DataGrid1.Columns(1).Value
In Vb.net to get the current row value.
Cheers
here's an example:
Dim currow As Integer
currow = DataGrid2.CurrentRowIndex
Label38.Text = DataGrid2.Item(currow, 0)
In this example, the label text is set to the value of the 1st cell in the current selected row, but it could be any column, just chnage the 0 to the column number (which start from 0)