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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top