Click here to Skip to main content
15,436,928 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I want to populate combo box from database inside the grid view. I am using asp.net, C#. I have data in database table I want to populate data from database table to combo box this combo box is in grid view. Please give me the solution for this. I will be thankful to you.

Thanks
PBN.
Posted

1 solution

Hi,
Use RowDataBound event of gridview, Find the dropdownlist control and bind it.
Check the CP article: Accessing a DropDownList inside a GridView[^]




--Amit
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900