Ver código fonte

2006-10-18 Igor Zelmanovich <[email protected]>

	* DetailsView.cs: fixed: considers DataControlField.InsertVisible.


svn path=/trunk/mcs/; revision=66785
Igor Zelmanovich 19 anos atrás
pai
commit
c4f91c3cd4

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

@@ -1,3 +1,7 @@
+2006-10-18 Igor Zelmanovich <[email protected]>
+
+	* DetailsView.cs: fixed: considers DataControlField.InsertVisible.
+
 2006-10-18 Igor Zelmanovich <[email protected]>
 
 	* DetailsView.cs: fixed: CurrentMode property.

+ 3 - 0
mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs

@@ -1184,6 +1184,9 @@ namespace System.Web.UI.WebControls
 				cell.ColumnSpan = 2;
 			row.Cells.Add (cell);
 			field.InitializeCell (cell, DataControlCellType.DataCell, row.RowState, row.RowIndex);
+
+			if (CurrentMode == DetailsViewMode.Insert && !field.InsertVisible)
+				row.Visible = false;
 		}
 		
 		IOrderedDictionary CreateRowDataKey (object dataItem)