List<purchaseentity> entityList = facade.GetPurchase(Convert.ToString(TxtPurNo.Text.Trim())); if (entityList != null) { foreach (PurchaseEntity pntity in entityList) { dgvPrd1.Rows.Add(new object[] { string.Format("0:0.00}",pntity.ProductId),pntity.PRoductName,pntity.Packing,pntity.BatchNo,pntity.PurPrice,pntity.Qty,pntity.Free,pntity.Margin}); } } catch { }
Person Bob = new Person(); //Assumption PersonList is DataSource to DataGrid PersonsList.Add(Bob);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)