I need populate dropdownlist selected value getting from database in gridview edititemtemplate in asp.net using c#.
I can't do it because when edit the gridview edititemtemplate in the dropdown lists the values of default are selected and not those registered in the database.
Member
63 Points
129 Posts
Bind (Set) DropDownList Selected Value in GridView EditItemTemplate in ASP.Net
Oct 05, 2019 07:05 PM|Golia|LINK
Hello everyone, I need your help.
I need populate dropdownlist selected value getting from database in gridview edititemtemplate in asp.net using c#.
I can't do it because when edit the gridview edititemtemplate in the dropdown lists the values of default are selected and not those registered in the database.
How to do resolve this ?
Can you help me ?
My code below
All-Star
53021 Points
23601 Posts
Re: Bind (Set) DropDownList Selected Value in GridView EditItemTemplate in ASP.Net
Oct 05, 2019 07:13 PM|mgebhard|LINK
You've limited the dropdown list to today plus 12 years in the future.
Clearly, date of birth cannot be in the future.
Member
144 Points
31 Posts
Re: Bind (Set) DropDownList Selected Value in GridView EditItemTemplate in ASP.Net
Oct 06, 2019 06:27 AM|Uncle Vince|LINK
If I understand your problem :
Member
63 Points
129 Posts
Re: Bind (Set) DropDownList Selected Value in GridView EditItemTemplate in ASP.Net
Oct 06, 2019 01:58 PM|Golia|LINK
Thank you!