/// <summary>
 /// Function to fill datagridview
 /// </summary>
 public void GridFill()
 {
     try
     {
         PartyBalanceInfo infoPartyBalance = new PartyBalanceInfo();
         PartyBalanceBll BllPartyBalance = new PartyBalanceBll();
         List<DataTable> listObj = new List<DataTable>();
         decimal decVoucherTypeId =0;
         decimal decVoucherTypeNameId=0;
         decVoucherTypeId = Convert.ToDecimal(cmbVoucherType.SelectedValue.ToString());
         decVoucherTypeNameId = Convert.ToDecimal(cmbVoucherTypeName.SelectedValue.ToString());
         listObj = BllPartyBalance.AgainstBillDetailsGridViewByLedgerId(decledgerId, strDebitOrCredit, decVoucherTypeId, decVoucherTypeNameId);
         dgvAgainstBillDetails.DataSource = listObj[0];
     }
     catch (Exception ex)
     {
         MessageBox.Show("AB3:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }