Browse Source

2005-06-27 Lluis Sanchez Gual <[email protected]>

	* DataControlField.cs: Ignore the ShowHeader property when
	building the control's content. It is the resposability of
	the field container to decide if the header should be shown
	or not.


svn path=/trunk/mcs/; revision=46540
Lluis Sanchez 20 years ago
parent
commit
0b6940fbf2

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

@@ -1,3 +1,10 @@
+2005-06-27  Lluis Sanchez Gual <[email protected]>
+
+	* DataControlField.cs: Ignore the ShowHeader property when
+	building the control's content. It is the resposability of
+	the field container to decide if the header should be shown
+	or not.
+
 2005-06-10  Lluis Sanchez Gual <[email protected]>
 
 	* AdType.cs:

+ 1 - 1
mcs/class/System.Web/System.Web.UI.WebControls/DataControlField.cs

@@ -82,7 +82,7 @@ namespace System.Web.UI.WebControls {
 		public virtual void InitializeCell (DataControlFieldCell cell,
 			DataControlCellType cellType, DataControlRowState rowState, int rowIndex)
 		{
-			if (cellType == DataControlCellType.Header && ShowHeader)
+			if (cellType == DataControlCellType.Header)
 			{
 				if (HeaderText.Length > 0 || HeaderImageUrl.Length > 0) {
 					if (sortingEnabled && SortExpression.Length > 0)