SEsternchen 0 Newbie Poster

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.