Posted on: 5/22/2014 7:51:05 AM | Views : 468

HI everyone,
i have page in which there are some text boxes , dropdownlist , submit button and gridview. after filling the text box and selecting a value from dropdownlist im inserting the values to the db. the inserted values are pouplating in the gridview. on the gridview selected index change event im filling the textboa,dropdownlist with the values from the db.evrything is working fine except the dropdownlist. on dropdownlist im getting an error 
dropdownlist has a SelectedValue which is invalid because it does not exist in the list of items
here are my codes
Protected Sub fill_status() Dim dt As DataTable dt = busiinsp.fill_status() ddlstatus.DataSource = dt ddlstatus.DataTextField = "description" ddlstatus.DataValueField = "code" ddlstatus.DataBind() End Sub
Protected Sub gvcomments_SelectedIn ...

Go to the complete details ...