_drItem.Price = (decimal)this.txtPrice.Text; // doesn't compile _drItem.Qty = (int)this.txtQty.Text; //doesn't compile Error 4 Cannot convert type 'string' to 'int' W:\sdc\SDCBarcodeScannerProject\SDCBarcodeScannerProject\SDCBarcodeScannerDeviceClient\OrdersEntryForm.cs 568 23 SDCBarcodeScannerDeviceClient>Hi,
> // DataSet Orders = new DataSet(); // What ever DataSet that it is ... > ... > > bool isAnyRec = false; > foreach (DataTable myDT in Orders.Tables) > if (myDT.Rows.Count() > 0) > { > isAnyRec = true; > break; > } > > ... > if( ! isAnyRec ) > Orders.Tables["Details"].Rows.Add( myDataRow ); >>