Click here to Skip to main content
15,907,497 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to show questions with multiple options in gridview or datalist with edit option for admin user ?
pls help me out with this problem
Posted

1 solution

hi,
You can use TemplateField in the GridView or datalist to define such a multi choice question. You can use a CheckBox List or RadioButton List for that. In order to enable admin to modify a record in your grid you can use HttpContext.Current.User.Identity.Name to check the current user and then enable and disable the edit buttons on your control.

I hope it helps,
Cheers
 
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