protected void DdlShow_SelectedIndexChanged(object sender, EventArgs e) { List <PORecord> poRecordList = DdlShow.SelectedValue == "All" ? PurchasingLogic.GetListOfPurchaseOrder() : PurchasingLogic.GetListOfPurchaseOrder(DdlShow.SelectedValue); GridViewLPO.DataSource = poRecordList; GridViewLPO.DataBind(); }
protected void BindGrid() { List <PORecord> poRecordList = PurchasingLogic.GetListOfPurchaseOrder("Pending"); GridViewLPO.DataSource = poRecordList; GridViewLPO.DataBind(); }