public WebDetailsView() { _CreateInnerNavigator = true; _NavControls = new DetailsViewInnerNavigatorCollection(this, typeof(ControlItem)); _QueryFields = new WebQueryFiledsCollection(this, typeof(WebQueryField)); this.AllowPaging = true; this.PagerSettings.Mode = PagerButtons.NumericFirstLast; this.AutoGenerateRows = false; this.GetServerText = true; }
private DetailsViewInnerNavigatorCollection InitControls(DetailsViewInnerNavigatorCollection Ctrls) { #region add default controls // Add Apply Control ControlItem ApplyItem = new ControlItem ("Apply", "apply", WebNavigator.CtrlType.Image, "../image/uipics/apply.gif", "../image/uipics/apply2.gif", "../image/uipics/apply3.gif", 26, true); Ctrls.Add(ApplyItem); // Add Abort Control ControlItem AbortItem = new ControlItem ("Abort", "abort", WebNavigator.CtrlType.Image, "../image/uipics/abort.gif", "../image/uipics/abort2.gif", "../image/uipics/abort3.gif", 26, true); Ctrls.Add(AbortItem); // Add Query Control ControlItem QueryItem = new ControlItem ("Query", "query", WebNavigator.CtrlType.Image, "../image/uipics/query.gif", "../image/uipics/query2.gif", "../image/uipics/query3.gif", 26, true); Ctrls.Add(QueryItem); #endregion return Ctrls; }