For Datagrid

  • Thread starter Thread starter payal
  • Start date Start date
P

payal

My web application contain one datagrid and in that four dropdownlist this drpdownlist bounded with the mysql database.so how i can fill this dropdownlist?

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
Hi,



My web application contain one datagrid and in that four dropdownlist this
drpdownlist bounded with the mysql database.so how i can fill this
dropdownlist?


You could do it inthe same way, using DataBinding.

If the dropdownlist is a cell of the grid you would have to use
ItemDataBound event of the grid to be able to modify the dropdownlist
binding values.

IF all the dropdownlist contains the same element is even easier, just use
a TemplateColumn
 
Back
Top