ietprofessional
Programmer
Hi Everyone,
I have multiple forms and a datagrid on each one. The last form will take all the data from the previous forms, which I saved in a dataset with multiple datatables, and save it to a database.
My problem is I have a form that has 5 fields, none of the fields are required. I save the data entered into these fields in a dataset and display the dataset in a datagrid. I want to allow the users to delete items from the datagrid/dataset but I don't have a primary key, because I don't have any required or unique values in the dataset.
How can I delete items from the datagrid/dataset without a datakeyfield?
Thanks!
I have multiple forms and a datagrid on each one. The last form will take all the data from the previous forms, which I saved in a dataset with multiple datatables, and save it to a database.
My problem is I have a form that has 5 fields, none of the fields are required. I save the data entered into these fields in a dataset and display the dataset in a datagrid. I want to allow the users to delete items from the datagrid/dataset but I don't have a primary key, because I don't have any required or unique values in the dataset.
How can I delete items from the datagrid/dataset without a datakeyfield?
Thanks!