M
matt tagliaferri
Can someone tell me how to accomplish the following:
Form 1 contains a grid (Janus) bound to a DataTable within a Dataset.
I don't like editing in the grid, so I have Add/Edit/Del buttons next
to the grid.
When the user clicks "Add", I want to "send" the DataTable to another
Form (constructor? property?) where a new row can be added to the
datatable, bound to textboxes, etc on the form, for editing. If the
user hits CANCEL on form2, though, I need to make sure the Add doesn't
happen.
If the user clicks "Edit", the same editing form would be called up,
only on the current row. Same binding would happen on the edit form,
and again, if the user hits cancel, no changes occur.
What do I need to send to Form2 to allow the binding to happen? How do
I "cancel" the editing, esp. in the "Add" case?
thanks,
matt tag
Form 1 contains a grid (Janus) bound to a DataTable within a Dataset.
I don't like editing in the grid, so I have Add/Edit/Del buttons next
to the grid.
When the user clicks "Add", I want to "send" the DataTable to another
Form (constructor? property?) where a new row can be added to the
datatable, bound to textboxes, etc on the form, for editing. If the
user hits CANCEL on form2, though, I need to make sure the Add doesn't
happen.
If the user clicks "Edit", the same editing form would be called up,
only on the current row. Same binding would happen on the edit form,
and again, if the user hits cancel, no changes occur.
What do I need to send to Form2 to allow the binding to happen? How do
I "cancel" the editing, esp. in the "Add" case?
thanks,
matt tag