* ListControl.cs: fixed: when is used with DataSourceID data bind is not
perfomed on PostBack because Items collection is restored from View state.
svn path=/trunk/mcs/; revision=70112
+2006-12-27 Igor Zelmanovich <igorz@mainsoft.com>
+
+ * ListControl.cs: fixed: when is used with DataSourceID data bind is not
+ perfomed on PostBack because Items collection is restored from View state.
+
2006-12-26 Igor Zelmanovich <igorz@mainsoft.com>
* DataGridPagerStyle.cs:
DoDataBinding (dataSource);
}
- [MonoTODO ("why override?")]
protected override void PerformSelect ()
{
base.PerformSelect ();
+ ViewState ["_DataBound"] = true;
}
protected internal override void RenderContents (HtmlTextWriter writer)
foreach (int index in indices)
Items [index].Selected = true;
}
+
+#if NET_2_0
+ if (ViewState ["_DataBound"] != null)
+ RequiresDataBinding = !(bool) ViewState ["_DataBound"];
+#endif
}
#if NET_2_0