/// <summary> /// Function to fill OrderNo combobox /// </summary> /// <param name="decLedger"></param> public void OrderNoComboFill(decimal decLedger) { try { List<DataTable> ListObj = new List<DataTable>(); MaterialReceiptBll bllMaterialReceiptMaster = new MaterialReceiptBll(); ListObj = bllMaterialReceiptMaster.GetOrderNoCorrespondingtoLedgerForMaterialReceiptRpt(Convert.ToDecimal(cmbCashOrParty.SelectedValue.ToString())); DataRow drow = ListObj[0].NewRow(); drow["invoiceNo"] = "All"; drow["purchaseOrderMasterId"] = -1; dtbl.Rows.InsertAt(drow, 0); if (dtbl != null) { cmbOrderNo.DataSource = ListObj[0]; cmbOrderNo.DisplayMember = "invoiceNo"; cmbOrderNo.ValueMember = "purchaseOrderMasterId"; } } catch (Exception ex) { MessageBox.Show("MRR4:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }