Returning value from specific cell in a datagrid row

  • Thread starter Brian Leach Christensen
  • Start date
B

Brian Leach Christensen

Hi
i have made a datagrid with a number of rows and made sure it selects the
entire row when you click a single cell. but now i have to make the datagrid
Return the value in the first cell in the selected row. how is that possible
(its a indexnumber from a order database)?
 
B

Brian Leach Christensen

hi again.
i've managed on my own. \o/
it appears that myTable.Rows(dataGrid.CurrentRowIndex)(0) returns the values
that i need.
 
M

Mauricio

Hi,
You get the value calling dataGrid.Item in
CurrentCellChanged event:
val=me.DataGrid.Item (me.DataGrid.CurrentCell.RowNumber ,0)
 

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

Top