Posted on: 6/6/2013 9:08:48 AM | Views : 306

Hi,
When I click on the Edit button to edit records in a dropdownlist, the existing value disappears and it is defaulted to blank value.
Is there a way the existing value still stays as the default value and then the user has the option to select from the available values ?
I know of the Selected Index (or Edit index) but dont know how to use it ? I have tried to use the same in the attached code but its not working correctly. Any suggestions would be appreciated.
Thanks.
private void SysDetailinEditMode() { //DvSysDetails.EditIndex = e.NewEditIndex; BindDetailViewSys(); string SYSTEM_NAME = "", SYSTEM_VENDOR = ""; TextBox edittxtsys_name = DvSysDetails.FindControl("edittxtsys_name") as TextBox; if (edittxtsys_name != null) { SYSTEM_NAME = edittxtsys_name.Text; } ...

Go to the complete details ...