Click here to Skip to main content
15,878,543 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello guys,

Can you please help me with dropdownlist in gridview.

I need to bind the dropdownlist in gridview control in editable mode using c# and asp.net dynamically.
If I click the edit button, I need a ddl control to be bind with the coloumn of a table.

Can you please help me to write the onrowdatabound event.
Posted
Updated 28-Oct-10 10:48am
v2
Comments
Dalek Dave 28-Oct-10 16:49pm    
Edited for Grammar and Spelling.

Here[^] is a useful link.
 
Share this answer
 
but i have problem :
ddl.DataSource = mytable statement and
categoryid = Int32.Parse(e.Row.Cells[0].Text)
and can u explain the coding please.
 
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