stevegray
4Penny.net
Points: 55409

3/15/2013 10:24:10 AM

Telerik - Winforms - Technique to save grid data to the database

* This article, and all our great Telerik Winforms Grid documentation, Is available on the Telerik Winforms Grid menu

There are two techniques that we use to save grid data to the database. One involves trapping the UserAddingRow, UserDeletingRow, and CellEndEdit events and committing the data to the database immediately.

That technique doesn't work or is not appropriate on all forms, like on a form that would have multiple changes going on at one time. An order entry form would have a total field that changed as the quantity in the grid was updated. In that case we hold all the changes and commit them with the Save button.

This article is a code example of that technique.

4Penny.net
Version:
Section:
Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3