Fill the DropDown box in OnRowDataBound event |
|
Posted By
Moderator1
on
4/1/2008 8:27:12 PM |
|
|
|
Description: |
Hi,
I suggest you to fill the Master's Table Dropdown list box in OnRowDataBound event.
Step 1: Find the control
DropDownList DropDownList1 = (DropDownList)e.Row.Cells[0].FindControl("DropDownList1");
DropDownList1.DataSource = your_DataTable_Filled_with_Master_Info
DropDownList1.DataBind()
That's it. for the DataTable pass conditions based on the Foreign Reference Key.
Good Luck.. |
|
|
|