private void listFree_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Items itm = new Items(); if (itm.GetFreeItems().Rows.Count != 0) { DataTable dtItm = itm.GetFreeItems(); // groupList.Text = "Free Items"; PopulateList(dtItm, lstDetail); } else { //nothing happenes } }