Click here to Skip to main content
15,891,902 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends,
I have grid with columns (noticeid,comment,brand)
when edit the grid, in case of brand i want to show dropdown.
Dropdown should be visible only when edit link is clicked.

Any idea ? any hint ?

Thanks in advance
Posted
Updated 27-Jun-11 1:15am
v2
Comments
R. Giskard Reventlov 27-Jun-11 6:28am    
What have you already tried for yourself? What research have you done?
dhage.prashant01 29-Jun-11 0:17am    
I have done most of the things, my problem is when I update the grid does not go back to read only mode even after setting
editindex = -1
calling bind function

Hello
try following link it may help you
Edit Individual GridView Cells in ASP.NET[^]

Thanks
Sanjeev
 
Share this answer
 
Comments
dhage.prashant01 27-Jun-11 6:32am    
How can I set DropDown value to selected column value?
any idea?
 
Share this answer
 
Comments
dhage.prashant01 28-Jun-11 6:50am    
Nice example, but when I update record the grid does not change back to read only mode.

Is it because we are using custom control to edit, rather than using BoundField ?
You can use EditItemTemplate
Ref:http://msdn.microsoft.com/en-us/library/ms972948.aspx[^]
 
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