Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4028
Manually inserting data to grid
posted

I have an ultragrid which is bound to a strongly typed class (I think that is the right jargon anyway). Basically, a class which hold data from the database after retreiving it.

One way that I am allowing data entry into this grid, is for the user to double-click on a blank (empty) row, and have a new form (detail/card view), to which I pass the object (class to which the grid is bound). In the new form (running modally), the user can enter details. When they press "OK", the data is saved to the database.

When I come back to the original form, the data is already there (as the class was passed by reference I think, so it was changed in both places at once). The problem is, that the grid did not register it as an insert. It still beleives the empty row that I double clicked on is still an empty row, so it wont show another empty row (as in, it still has the asterix on this row, indicating that it thinks it is empty).

How do I manually tell the grid that this row has been saved to the database, and to act accordingly?

Thanks.