Kaynağa Gözat

* DataGridColumn.cs: If an item style is set apply it to the
cell. This fixes bug #50173.

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

Jackson Harper 22 yıl önce
ebeveyn
işleme
44dcab7076

+ 5 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,8 @@
+2003-10-29 Jackson Harper <[email protected]>
+
+	* DataGridColumn.cs: If an item style is set apply it to the
+	cell. This fixes bug #50173.
+	
 2003-10-29 Ben Maurer  <[email protected]>
 
 	* HyperLinkColumn.cs: Patch by Yaron Shkop. Fixes #50234. Remove

+ 2 - 0
mcs/class/System.Web/System.Web.UI.WebControls/DataGridColumn.cs

@@ -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);