public override void DataBind() { this.Items.Clear(); foreach (DataRow row in SubSiteProducthelper.GetAuthorizeProductLines().Rows) { this.Items.Add(new ListItem(string.Concat(new object[] { Globals.HtmlDecode((string)row["Name"]), "(", row["ProductCount"], ")" }), row["LineId"].ToString())); } }
public override void DataBind() { this.Items.Clear(); DataTable authorizeProductLines = SubSiteProducthelper.GetAuthorizeProductLines(); foreach (DataRow dataRow in authorizeProductLines.Rows) { this.Items.Add(new System.Web.UI.WebControls.ListItem(string.Concat(new object[] { Globals.HtmlDecode((string)dataRow["Name"]), "(", dataRow["ProductCount"], ")" }), dataRow["LineId"].ToString())); } }
void BindData() { grdProductLine.DataSource = SubSiteProducthelper.GetAuthorizeProductLines(); grdProductLine.DataBind(); }
private void BindData() { this.grdProductLine.DataSource = SubSiteProducthelper.GetAuthorizeProductLines(); this.grdProductLine.DataBind(); }