>private void DisplayItemInfo(string ItemNo) > { > InventoryDS.ItemsDataTable invDt =_inventoryBiz.Find(ItemNo, null); > > if (invDt.Count > 0) > //Show info > else > MessageBox.Show("The scanned item is not found in the inventory. Please select another item") ; > } >>
// Assuming strongly typed datatable this.txtSomeControl.Text = invDt.ColumnName;If it's more than one then you'll probably need to use a DataGrid on the form then bind it to the DataTable (set it's DataSource to the datatable).