Author: igorz
Date: 2006-10-05 11:03:55 -0400 (Thu, 05 Oct 2006)
New Revision: 66294
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs
Log:
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-10-05 15:02:19 UTC (rev 66293)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-10-05 15:03:55 UTC (rev 66294)
@@ -1,5 +1,9 @@
2006-10-05 Igor Zelmanovich <[EMAIL PROTECTED]>
+ * FormView.cs: optimization for previous patch
+
+2006-10-05 Igor Zelmanovich <[EMAIL PROTECTED]>
+
* DetailsView.cs:
* DetailsViewRow.cs:
implemented PrepareControlHierarchy()
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs
2006-10-05 15:02:19 UTC (rev 66293)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs
2006-10-05 15:03:55 UTC (rev 66294)
@@ -1091,9 +1091,9 @@
case DataControlRowType.DataRow:
if (rowStyle != null &&
!rowStyle.IsEmpty)
row.ControlStyle.CopyFrom
(rowStyle);
- if ((row.RowState &
DataControlRowState.Edit) != 0 && editRowStyle != null)
+ if ((row.RowState &
DataControlRowState.Edit) != 0 && editRowStyle != null && !editRowStyle.IsEmpty)
row.ControlStyle.CopyFrom
(editRowStyle);
- if ((row.RowState &
DataControlRowState.Insert) != 0 && insertRowStyle != null)
+ if ((row.RowState &
DataControlRowState.Insert) != 0 && insertRowStyle != null &&
!insertRowStyle.IsEmpty)
row.ControlStyle.CopyFrom
(insertRowStyle);
break;
default:
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches