another topic that keeps me puzzled is how to insert a new datarow in a databound grid. This should be trivial:
Just insert the InsertionRow, fill in any values and the underlying datarow should be filled, when the EditEnded event is raised.
Of course, it is not that easy, what happens is this:
When I select the InsertionRow, a new empty DataRow is created. When leaving the InsertionRow, an EndEdit event is raised, the
data row remains empty and no new row gets inserted.
The documentation reads:
How to make the InsertionRow insert its data
As of version 1.1, the BeginEdit and EndEdit methods have been moved to the CellRow class rather than only the DataRow class meaning that you will only need to call the EndEdit
method on the InsertionRow to commit the row.
So this should be a no-brainer…but it remains a mystery to me.
Imported from legacy forums. Posted by Dietmar (had 985 views)