[Mono-bugs] [Bug 82615][Wis] New - Hidden columns not included in the Cells collection of GridViewRow

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 28 12:41:33 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by g.tardini at caleidoscopio.it.

http://bugzilla.ximian.com/show_bug.cgi?id=82615

--- shadow/82615	2007-08-28 12:41:33.000000000 -0400
+++ shadow/82615.tmp.16476	2007-08-28 12:41:33.000000000 -0400
@@ -0,0 +1,46 @@
+Bug#: 82615
+Product: Mono: Class Libraries
+Version: unspecified
+OS: unknown
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: mhabersack at novell.com                            
+ReportedBy: g.tardini at caleidoscopio.it               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Hidden columns not included in the Cells collection of GridViewRow
+
+Description of Problem:
+The Cells collection of the GridViewRow class doesn't contain hidden cells. 
+
+Steps to reproduce the problem:
+1. 
+Insert a GridView with some columns in an aspx page, let's call it myGrid,
+and populate it with some data.
+
+2.
+Set the "Visible" property of at least one column to "False" (either in
+.aspx or in the code before DataBind)
+
+3.
+Create a handler for the RowCreated event:
+myGrid.RowCreated += new GridViewRowEventHandler(myGrid_RowCreated);
+
+4.
+In the handler count the number of cells
+myLabel.Text = "number of columns: " + e.Row.Cells.Count.ToString();
+
+Actual Results:
+The number returned is the number of columns which are not hidden.
+
+Expected Results:
+In .NET it returns the number of columns including the hidden ones.
+
+How often does this happen? 
+Always


More information about the mono-bugs mailing list