D
donet programmer
The dropdown list is created inside the EditItemTemplate of the
DetailsView control. I am binding a dropdownlist to a dataset
programatically when the user switches to the Edit mode. In the code
after the binding the dropdown to the dataset, I insert a listitem at
index 0, something like this :
MyDDL.Items.Insert(0, new ListItem("-Select-", "-1"));
When I run the code and change to Edit a record, I only see data bound
items in the dropdown. This works great if I move the dropdown outside
the DetailsView.
I know there are ways to get around this, just wondering if this is a
bug in .NET 2.0?? One would expect controls to be working the same way
whether inside or outside a DetailsView, GridView controls
DetailsView control. I am binding a dropdownlist to a dataset
programatically when the user switches to the Edit mode. In the code
after the binding the dropdown to the dataset, I insert a listitem at
index 0, something like this :
MyDDL.Items.Insert(0, new ListItem("-Select-", "-1"));
When I run the code and change to Edit a record, I only see data bound
items in the dropdown. This works great if I move the dropdown outside
the DetailsView.
I know there are ways to get around this, just wondering if this is a
bug in .NET 2.0?? One would expect controls to be working the same way
whether inside or outside a DetailsView, GridView controls