Datagrid.text value

  • Thread starter Thread starter Flying Whiz
  • Start date Start date
F

Flying Whiz

I am trying to catch value from datagrid cell.

I am trying to pass the value into a variable as below.

VarGridVal = DataGrid1.Text

MsgBox(VarGridVal)

but in the message box the value I am getting is "DataGrid1" instead
of the cell value.

How can I get the value ?

Thanks
Whiz
 
You need

Dim cell as DataGridCell = DataGrid1.CurrentCell
DataGrid1.Item(cell.RowNumber, cell.ColumnNumber).ToString()
 
Back
Top