Returning value from specific cell in a datagrid row

  • Thread starter Thread starter Brian Leach Christensen
  • Start date 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)?
 
hi again.
i've managed on my own. \o/
it appears that myTable.Rows(dataGrid.CurrentRowIndex)(0) returns the values
that i need.
 
Hi,
You get the value calling dataGrid.Item in
CurrentCellChanged event:
val=me.DataGrid.Item (me.DataGrid.CurrentCell.RowNumber ,0)
 
Back
Top