Click here to Skip to main content
15,881,248 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 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.
Updated 28-Oct-10 10:48am
Dalek Dave 28-Oct-10 16:49pm    
Edited for Grammar and Spelling.

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
Here[^] is a useful link.
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