Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Disable a column in datagrid

  Asked By: Nicole Lewis         Date: Jan 02, 2010      Category: Sharepoint      Views: 242
 

a web part consisting a datagrid with Columns viz., A,B,C,D,E,F,G and H. in my
site.
consists of 20 users.

now my question is how to disable the column E for 5 users.(the rest 15 can see
that column)

Tagged:        

 

1 Answer Found

 
Answer #1       Answered By: Maribel Todd          Answered On: Jan 02, 2010       

If you're using the asp.net gridview, you can catch the RowCreated event
and hide that particular cell depending on the user. It's not really
specific to SharePoint. You might want to check out the Microsoft
ASP.Net group for more info or further questions.

 
Didn't find what you were looking for? Find more on Disable a column in datagrid Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].