Datagrid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I setup a data grid and figured out that I could select a value by doing the following
DataGrid1.Item(0, 0

However, I don't want to have to specify the cell location. I want the user to be able to select the cell location and get the appropriate value. Does anyone know how to dynamically get the row/cell value?
 
I figured out I could do the following
DataGrid1.Item(DataGrid1.CurrentCell.RowNumber.ToString, 0

If anyone knows how to figure the value in the row and column selected it would be greatly appreciated

Thanks
 
Back
Top