Click here to Skip to main content
14,384,911 members
Rate this:
Please Sign up or sign in to vote.
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 2: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
Rate this:
Please Sign up or sign in to vote.

Solution 1

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

Thanks
Sanjeev
   
Comments
dhage.prashant01 27-Jun-11 6:32am
   
How can I set DropDown value to selected column value?
any idea?
Rate this:
Please Sign up or sign in to vote.

Solution 3

   
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 ?
Rate this:
Please Sign up or sign in to vote.

Solution 2

You can use EditItemTemplate
Ref:http://msdn.microsoft.com/en-us/library/ms972948.aspx[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100