how to get dropdownlist in gridview after pressing edit button
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Balaji APosted Jul 14, 2015, 5:12 AM
1. Load the data in gridview from dataTable
2. I assume that employee dep have the value with dropdownlist.
3. when you click on Edit button, OnRowDataBound event will be fired and get the specific row in DataRowView as like below
DataRowView drview = e.Row.DataItem as DataRowView;
4. Then load the Emp_dep dropdown from GetEmpDept() method which will return departments datatable