private void LoadItemsFromSTVInvoice(int storeID, int stvPrintedID) { BLL.Issue stv = new BLL.Issue(); stv.LoadByStoreIDAndPrintedID(storeID, stvPrintedID); if (stv.RowCount == 0) { XtraMessageBox.Show("Invalid STV/Invoice number!", "Error"); return; } DataTable tbl = BLL.Item.GetItemsBySTVInvoiceNoForStockReturn(stv.ID, storeID); _dtSelectedTable = tbl.Clone(); gridSelected.DataSource = _dtSelectedTable; foreach (DataRow dr in tbl.Rows) { SelectAnItem(dr); } }