For Datagrid

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
 
I

Ignacio Machin \( .NET/ C# MVP \)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

dropdownlist items 1
.Net Framework 1
asp.net using c# 1
vb.net 1
Refering Assemblies 1
Image 3
Checkbox Validation-to find all the checkbox are checkedor not? 1
set Dropdownlist SelectedIndex in a DataGrid 1

Top