* DataGridColumn.cs: If an item style is set apply it to the
authorJackson Harper <jackson@novell.com>
Thu, 30 Oct 2003 07:31:58 +0000 (07:31 -0000)
committerJackson Harper <jackson@novell.com>
Thu, 30 Oct 2003 07:31:58 +0000 (07:31 -0000)
cell. This fixes bug #50173.

svn path=/trunk/mcs/; revision=19477

mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
mcs/class/System.Web/System.Web.UI.WebControls/DataGridColumn.cs

index 07aa47c26305ee2e24e5a7a3927061b5e1336aae..f0e7b0b878c13548e0960f20a3ef3105f156f50e 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-29 Jackson Harper <jackson@ximian.com>
+
+       * DataGridColumn.cs: If an item style is set apply it to the
+       cell. This fixes bug #50173.
+       
 2003-10-29 Ben Maurer  <bmaurer@users.sourceforge.net>
 
        * HyperLinkColumn.cs: Patch by Yaron Shkop. Fixes #50234. Remove
index 458f6a293918fd5c4347a21fc9efa8dbefdcbec7..007d00cdb9f6f9eab486761c56c11b51ba18c06c 100644 (file)
@@ -227,6 +227,8 @@ namespace System.Web.UI.WebControls
 
                public virtual void InitializeCell(TableCell cell, int columnIndex, ListItemType itemType)
                {
+                        if (ItemStyleInternal != null)
+                               cell.ApplyStyle (ItemStyleInternal);
                        switch(itemType)
                        {
                                case ListItemType.Header : InitializeCellHeader(cell, columnIndex);