From eae9c600ea212310e3d142487e5aacccf925a228 Mon Sep 17 00:00:00 2001 From: Igor Zelmanovich Date: Thu, 5 Oct 2006 15:03:55 +0000 Subject: [PATCH] svn path=/trunk/mcs/; revision=66294 --- mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog | 4 ++++ mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog b/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog index d7d0786ff72..60fead17deb 100644 --- a/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog +++ b/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog @@ -1,3 +1,7 @@ +2006-10-05 Igor Zelmanovich + + * FormView.cs: optimization for previous patch + 2006-10-05 Igor Zelmanovich * DetailsView.cs: diff --git a/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs b/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs index c67d3f457e2..8a2ef7bfc17 100644 --- a/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs +++ b/mcs/class/System.Web/System.Web.UI.WebControls/FormView.cs @@ -1091,9 +1091,9 @@ namespace System.Web.UI.WebControls 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: -- 2.25.1