private void listStockOut_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Balance bal = new Balance(); DataTable stockout = bal.GetStockOut(storeId, curMont, curYear, Convert.ToInt32(lkCategory.EditValue)); DataTable dtStockout = (from m in stockout.AsEnumerable() where ((ckExclude.Checked == true) ? Convert.ToInt32(m["EverReceived"]) == 1 : true) select m).CopyToDataTable(); //((ckExclude.Checked) ? bal.GetReceivedStockOut(storeId, curMont, curYear) :); // StatusGroup.Text = "Stocked Out Items"; PopulateList(dtStockout, listStatused); }