Home Forums WinForms controls Xceed Grid for WinForms adding rows to master detail grid Reply To: adding rows to master detail grid

User (Old forums)
Member
Post count: 23064

You need to call EndEdit on the row, so it is actually added it to the DataRows collection :
<i>
Dim row as Xceed.Grid.DataRow = Grid.DataRows.AddNew()

row.EndEdit()
</i>
You can of course set the row before calling EndEdit().

e.g.
<i>
Dim row as Xceed.Grid.DataRow = Grid.DataRows.AddNew()

For Each cell In row.Cells
cell.Value = “some value”
Next

row.EndEdit()
</i>

Imported from legacy forums. Posted by André (had 2906 views)