I have a grid view which display different phone types with insert,edit and delete options.
During insert in the modal formview I have dropdown for different phone types which is bound to an
object datasource. The object datasource displays all the available phone types including the ones
displayed in the gridview
How do I display only the values that is not in the gridview. I tried setting the object datasource to a different one
and it does not work ( in Item created event). It display no values in the dropdown when I know there is more than 1 availble.
How do I change the object datasource during insert or how do I filter the values in the dropdown.
protected void FormViewOnlinePhone_ItemCreated(object sender, EventArgs e)
FormView fvPhone = (FormView)FindControl("FormViewOnlinePhone");
DropDownList dropdownUsage = (DropDownList)fvPhone.FindControl("DropDownListPhoneType");
DataSet dsType = new DataSet();
if (FormViewOnlinePhone.CurrentMode == FormViewMode.Insert)
dsType = psClass.GetInsertPhoneTypes(application_id);
dropdownUsage.DataSource = dsType.Tables["usage"];
View Complete Post