[vb]
Dim nieuweRij As DataRow
nieuweRij = dtBestelling.NewRow
nieuweRij("soort") = rbknop.Text
nieuweRij("aantal") = 1
dtBestelling.Rows.Add(nieuweRij)
dgBestellingen.Focus()
'Focusing a particular cell in the Data Grid
Dim dgc As DataGridCell = New DataGridCell(1, 1)
dgBestellingen.CurrentCell = dgc
'so i need the cell in the 2nd column of the new addedrow
Dim dgtb As DataGridTextBoxColumn = CType(dgBestellingen.TableStyles(0).GridColumnStyles(2), DataGridTextBoxColumn)
dgtb.TextBox.Focus()
[/vb]
Answers
Know the answer? Post it. Somebody with the same question will find it here.