View Single Post
  #119 (permalink)  
Old 09-21-2007, 04:32 AM
Venkat Venkat is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 350
Venkat is on a distinguished road
Thumbs up Re: ASP.NET Data Controls

hi,

I'm lost. I don't really follow the code here. Why would I modify the edititemtemplate AFTER someone hits the 'Edit' button. Shouldn't I do that as the gridview is being rendered or something? And I already mentioned that I don't want to put both a label and a textbox in each column's edit item template and then swap between them.
Please let me know if there's a better alternative for me to be able to display the information the way I want and make sure users can't edit data in individual columns when they don't have admin access. I'd REALLY hate to have to create a duplicate gridview just because I'm using Template Items for columns!
I don't use a field in the gridview to distinguish admin vs. non-admin. I have access levels for each user stored in a database by userid. When a user accesses the site initially, I read their access level and store it in a session variable that's used throughout their session to determine access to various parts of the site. It's just controlling access to individual columns that I'm having trouble with.
__________________
Venkat
knowledge is Power
Reply With Quote