I have a form where the user may see a matrix of data in a grid (populated
via a dataset). If the user wishes to add a new row of data, they click a
button and a new form opens where the user may enter data into each
textbox, then click the add button when finished. At this point a stored
procedure is run which inserts the new row into the database (not the
dataset), given that the row is not a duplicate and the contents of each
text box are valid.
Now that the data resides in the database (via the sp), how best to update
the dataset ?
- Clear and fill OR
- add the new row to the dataset via code
How do most people accomplish this in vb.net ?
Is this a pretty common approach (use stored procs) instead of the ".update"
method ?
Thanks !
via a dataset). If the user wishes to add a new row of data, they click a
button and a new form opens where the user may enter data into each
textbox, then click the add button when finished. At this point a stored
procedure is run which inserts the new row into the database (not the
dataset), given that the row is not a duplicate and the contents of each
text box are valid.
Now that the data resides in the database (via the sp), how best to update
the dataset ?
- Clear and fill OR
- add the new row to the dataset via code
How do most people accomplish this in vb.net ?
Is this a pretty common approach (use stored procs) instead of the ".update"
method ?
Thanks !
Comment