J
Johan Van Dyk via .NET 247
Hi All
I have a form where the user can insert a record to the SQl database. In this form there are several Dropdown's. This I've got working.
I now want to use a copy of this form to UPDATE the existing records. Ther are several dataset's to populate the various dropdowns and then one dataset which contains the values of the record being edited.
How can I set the SelectedItem/SelectedIndex of the dropdown's to the existing record?
A sample piece of code would be highly appreacited.
PS: using C#
I have a form where the user can insert a record to the SQl database. In this form there are several Dropdown's. This I've got working.
I now want to use a copy of this form to UPDATE the existing records. Ther are several dataset's to populate the various dropdowns and then one dataset which contains the values of the record being edited.
How can I set the SelectedItem/SelectedIndex of the dropdown's to the existing record?
A sample piece of code would be highly appreacited.
PS: using C#