예제 #1
0
        private void GvBindDesignation()
        {
            objDesignation    = new Designation();
            objDesignationBiz = new DesignationBiz();
            DataTable dtDesignation = new DataTable();

            dtDesignation            = objDesignationBiz.GetDesignation(txtDesignationSearch.Text.Trim());
            gvDesignation.DataSource = dtDesignation;
            gvDesignation.DataBind();
            gvDesignation.ShowHeaderWhenEmpty = true;
            gvDesignation.EmptyDataText       = "No data found!";
        }
예제 #2
0
        private void GvBindDesignation()
        {
            objDesignation    = new Designation();
            objDesignationBiz = new DesignationBiz();
            DataTable dtDesignation = new DataTable();

            dtDesignation            = objDesignationBiz.GetDesignation(txtDesignationSearch.Text.Trim());
            gvDesignation.DataSource = dtDesignation;
            gvDesignation.DataBind();
            gvDesignation.ShowHeaderWhenEmpty           = true;
            gvDesignation.EmptyDataText                 = "No data found!";
            gvDesignation.AlternatingRowStyle.BackColor = Color.AliceBlue;
            gvDesignation.SelectedRowStyle.BackColor    = Color.DarkKhaki;
        }