protected void _DDL_Comapnies_Index(object sender, EventArgs e) { if (_DDL_Comapnies.SelectedIndex < 1) { return; } _GW_.DataSource = NorthwindAccess.CustomerCategorySummary(_DDL_Comapnies.SelectedValue); _GW_.DataBind(); _GW_.HeaderStyle.BackColor = System.Drawing.Color.Black; _GW_.HeaderStyle.ForeColor = System.Drawing.Color.White; _GW_.HeaderStyle.Font.Size = 50; }
/// <summary> /// When the selected index changes, update GV, make sure the first index clears the GV /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void CustDDL_SelectedIndexChanged(object sender, EventArgs e) { if (CustDDL.SelectedIndex > 0) { CustGV.DataSource = NorthwindAccess.CustomerCategorySummary(CustDDL.SelectedValue); CustGV.DataBind(); } else { CustGV.DataSource = null; CustGV.DataBind(); } }
protected void DropDownListCustomers_SelectedIndexChanged(object sender, EventArgs e) { GridViewCustomerCategory.DataSource = NorthwindAccess.CustomerCategorySummary(DropDownListCustomers.SelectedValue); GridViewCustomerCategory.DataBind(); }