GridView hiding cells dynamically

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2005
Posts: 2
Reputation: SEsternchen is an unknown quantity at this point 
Solved Threads: 0
SEsternchen SEsternchen is offline Offline
Newbie Poster

GridView hiding cells dynamically

 
0
  #1
Jun 13th, 2005
Hi!

I've got a gridview problem.

I want to hide one cell in a row of a GridView based on the result of a method. (The cell i want to hide is the command field, there are rows that are not allowed to be edited, others should be allowed to be edited.)

At the moment, I wrote the code to hide these cells in the event-implementation of gridview_databound. This works perfectly when the website is loaded, but after editing and updating or deleting a row in the gridview, all cells are visible again even if they shouldn't be. After debugging I know that every time, after updating and deleting too, the cells are hidden (or at least the code for hiding these cells is called) but after updating or deleting (clicking those buttons in in command field) there seems to be something that overrides what I did in gridview_databound. So my question is if there is another method where i should make those cells invisible?

Thanks in advance,
SEsternchen
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC