Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: dropdown menu in gridview
02-17-2011, 07:45 PM #1
- Join Date
- May 2010
- Thanked 0 Times in 0 Posts
dropdown menu in gridview
i have a dropdown menu in a gridview. Dropdown menu items are "Confirmed, Cancelled, No Show".
I also have 2 tables: Appointment and CancelNoshow
<asp: TemplateField HeaderText="STATUS"...
<asp: DropDownList id="ddl_stat"...>
When i click on Edit button, the dropdown menu is populated with an Update button.
How can i do something like,
1. when i select Confirmed, it will update Status column in table Appointment.
2. when i select either Cancelled or No Show, a record will be deleted from Appointment table and it will be inserted in to CancelNoshow table.