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