Author: gonzalo
Date: 2005-11-18 14:59:16 -0500 (Fri, 18 Nov 2005)
New Revision: 53244

Modified:
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataGrid.cs
Log:
2005-11-18 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * DataGrid.cs: use TableHeaderCell instead of TableCell for headers when
        UseAccesibleHeader property is true. Patch by Robert Jordan.



Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2005-11-18 19:40:45 UTC (rev 53243)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2005-11-18 19:59:16 UTC (rev 53244)
@@ -1,5 +1,10 @@
 2005-11-18 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
+       * DataGrid.cs: use TableHeaderCell instead of TableCell for headers when
+       UseAccesibleHeader property is true. Patch by Robert Jordan.
+
+2005-11-18 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
        * BaseValidator.cs: 'controltovalidate' must be the ClientID of the
        control to validate. Fixes bug #76641.
 

Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataGrid.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataGrid.cs    
2005-11-18 19:40:45 UTC (rev 53243)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataGrid.cs    
2005-11-18 19:59:16 UTC (rev 53244)
@@ -701,8 +701,9 @@
 
                protected virtual void InitializeItem (DataGridItem item, 
DataGridColumn [] columns)
                {
+                       bool th = UseAccessibleHeader && item.ItemType == 
ListItemType.Header;
                        for (int i = 0; i < columns.Length; i++) {
-                               TableCell cell  = new TableCell ();
+                               TableCell cell = (th) ? new TableHeaderCell () 
: new TableCell ();
                                columns [i].InitializeCell (cell, i, 
item.ItemType);
                                item.Cells.Add (cell);
                        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to