/// <summary>
        /// Function to fill the grid based on the Search keys
        /// </summary>
        public void BillAllocationGridFill()
        {
            try
            {
                PartyBalanceBll BllPartyBalance = new PartyBalanceBll();
                if (cmbAccountGroup.SelectedIndex > -1 && cmbAccountLedger.SelectedIndex > -1)
                {
                    if (cmbAccountGroup.SelectedItem.ToString() != "System.Data.DataRowView" || cmbAccountGroup.Text != "System.Data.DataRowView" && cmbAccountLedger.SelectedItem.ToString() != "System.Data.DataRowView" || cmbAccountLedger.Text != "System.Data.DataRowView")
                    {
                        if (Convert.ToDateTime(txtfromdate.Text) <= Convert.ToDateTime(txttodate.Text))
                        {
                            List<DataTable> listObj = new List<DataTable>();
                            listObj = BllPartyBalance.BillAllocationSearch(Convert.ToDateTime(txtfromdate.Text), Convert.ToDateTime(txttodate.Text), cmbAccountGroup.Text, cmbAccountLedger.Text);
                            dgvBillAllocation.DataSource = listObj[0];
                        }
                        else
                        {

                            Messages.InformationMessage("Fromdate should be less than or equal to todate");
                            txttodate.Focus();
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("BA:06" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }