Beispiel #1
0
		private void LoadCategories()
		{
			BPQuickReportTokenCategories bp = new BPQuickReportTokenCategories();
			ddlCategories.DataSource = bp.SelectByQuickReportID(Convert.ToInt32(ddlReports.SelectedValue)).tbl_QuickReportTokenCategories;
			ddlCategories.DataTextField = "TokenCategoryName";
			ddlCategories.DataValueField = "TokenCategoryID";
			ddlCategories.DataBind();
		}
		private void BindTokenCategories()
		{
			BPQuickReportTokenCategories bp = new BPQuickReportTokenCategories();
			ddlTokenCategories.DataSource = bp.SelectByQuickReportID(QuickReportID);
			ddlTokenCategories.DataMember = "tbl_QuickReportTokenCategories";
			ddlTokenCategories.DataTextField = "TokenCategoryName";
			ddlTokenCategories.DataValueField = "TokenCategoryID";
			ddlTokenCategories.DataBind();
			ddlTokenCategories.Items.Insert(0,new ListItem("(Choose Data Group)","0"));
		}