H
HS1
Hello all
- I have a master and a details table presented in two datagrid
- I also have some text boxes that present the values from any record in the
master table. This also helps to enter new data for the master table.
I also have a Add button to add new data
Me.BindingContext(masterGrid.DataSource, "masterTable").AddNew()
The master and details tables work well. When I click Add new button, a new,
empty record is presented in master table. Then I can enter data in the text
boxes (or in the master table)
However, the details table still presents the old data (the old data of a
master record).
What I want is that when I click Add new record for the master table, the
detail table will be empty so that I can enter new values.
Could you please help
Thanks
- I have a master and a details table presented in two datagrid
- I also have some text boxes that present the values from any record in the
master table. This also helps to enter new data for the master table.
I also have a Add button to add new data
Me.BindingContext(masterGrid.DataSource, "masterTable").AddNew()
The master and details tables work well. When I click Add new button, a new,
empty record is presented in master table. Then I can enter data in the text
boxes (or in the master table)
However, the details table still presents the old data (the old data of a
master record).
What I want is that when I click Add new record for the master table, the
detail table will be empty so that I can enter new values.
Could you please help
Thanks