Author: igorz
Date: 2006-10-18 09:19:00 -0400 (Wed, 18 Oct 2006)
New Revision: 66785
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs
Log:
2006-10-18 Igor Zelmanovich <[EMAIL PROTECTED]>
* DetailsView.cs: fixed: considers DataControlField.InsertVisible.
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-10-18 12:38:02 UTC (rev 66784)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-10-18 13:19:00 UTC (rev 66785)
@@ -1,5 +1,9 @@
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.
2006-10-18 Igor Zelmanovich <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs
2006-10-18 12:38:02 UTC (rev 66784)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/DetailsView.cs
2006-10-18 13:19:00 UTC (rev 66785)
@@ -1184,6 +1184,9 @@
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)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches