| | |
GridView hiding cells dynamically
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2005
Posts: 2
Reputation:
Solved Threads: 0
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
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
![]() |
Similar Threads
- Adding color to GridView (ASP.NET)
- How to retrieve data from a dynamically generated radio button (ASP.NET)
- using javascript to dynamically add to existing html table (JavaScript / DHTML / AJAX)
- Controls in GridView (ASP.NET)
- Adding a checkbox column dynamically (C#)
- Hiding IP addy for WAN traffic? (Networking Hardware Configuration)
Other Threads in the ASP.NET Forum
- Previous Thread: Updating DB using SqlDataAdapter
- Next Thread: Help me with Crystal Report
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 activexcontrol ajax alltypeofvideos anathor appliances application asp asp.net bc30451 beginner box browser button c# cac checkbox commonfunctions complex dataaccesslayer database datagridview datagridviewcheckbox datalist development dgv dialog dropdownlist dynamically edit editing expose feedback fileuploader fill flash form formatdecimal formview google gridview gudi iis image javascript list listbox login microsoft migration mouse mssql news numerical opera panelmasterpagebuttoncontrols parent problem project radio redirect registration relationaldatabases reportemail response.redirect richtextbox rows save schoolproject search security select session sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visualstudio web webapplications webdevelopemnt webprogramming webservice xsl youareanotmemberofthedebuggerusers





