How to set DataGrid Cell Value
I have tried the code below but it wont work
Can anyone set me on the right path
DataGrid1.CurrentCell.RowNumber, 0).value = txtMyValue.Text
DataGrid1.CurrentCell.RowNumber, 0).value = txtMyValue.Text
'
'Set a value into the current Grid cell with a spesified column number 'DataGrid1(DataGrid1.CurrentCell.RowNumber, 5) = txtMessage.Text ' ' 'worksDataGrid1(DataGrid1.CurrentRowIndex, 5) = txtMessage.Text
' ' 'worksDataGrid1.Item(DataGrid1.CurrentRowIndex, 5) = txtMessage.Text
' ' Dim CurrentCell As DataGridCellCurrentCell = DataGrid1.CurrentCell
'These 2 methods workDataGrid1(CurrentCell.RowNumber, CurrentCell.ColumnNumber) = txtMessage.Text
'DataGrid1(CurrentCell.RowNumber, 5) = txtMessage.Text '