Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hai..

how can i disable edit button in gridview based on user role..
if it is admin i have display edit button or else it should be in disabled mode.
can anyone get me out from this


thanks in advance...
Posted
Comments
Richard C Bishop 1-May-13 15:29pm    
On page_load you could check the role of the user and then disable the buttons or not based on your findings.
Priyanka Anumolu 1-May-13 15:33pm    
actuall i have to display a grid..
based on role while login, i have make modifications in that grid

1 solution

Have a look at this link Displaying Edit button in GridView based on Role. I think it can help you.
 
Share this answer
 
Comments
Renju Vinod 2-May-13 2:31am    
+5

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