private void btnSearch_Click(object sender, EventArgs e)
 {
     try
     {
         if (ddlSearchBy.SelectedIndex == 0)
         {
             MessageBox.Show("Please select Search Type", "Search Type Validation", MessageBoxButtons.OK, MessageBoxIcon.Error);
             ddlSearchBy.Focus();
             return;
         }
         if (txtSearchValue.Text.Trim() == "")
         {
             MessageBox.Show("Please enter Search Value", "Search Value Validation", MessageBoxButtons.OK, MessageBoxIcon.Error);
             txtSearchValue.Focus();
             return;
         }
         Cursor            = Cursors.WaitCursor;
         pnlSearch.Enabled = false;
         tbl_MemberMasterBAL Objtbl_MemberMasterBAL = new tbl_MemberMasterBAL();
         Objtbl_MemberMasterBAL.InsertSearchLog(txtSearchValue.Text, ddlSearchBy.Text, DateTime.Now, Global.intUserId);
         DataSet ds = new DataSet();
         ds = SeaarchData(ddlSearchBy.Text, txtSearchValue.Text);
         FillGrid(ds);
         Cursor = Cursors.Default;
     }
     catch (Exception ex)
     {
         MessageBox.Show(Convert.ToString(ex.Message));
         this.objEventLoging.AppErrlog("Error In AnantMatrimony.frmMemberMaster.btnSearch_Click() " + ex.ToString());
     }
 }