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!"; }
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; }