Пример #1
0
 public void PopulateData()
 {
     try
     {
         DataSet ds = emp.ShowReportEmployee();
         if (ds.Tables[0].Rows.Count != 0)
         {
             GridViewEmp.DataSource = ds.Tables[0];
             GridViewEmp.DataBind();
         }
     }
     catch (Exception ex)
     {
         lblMsg.Text = ex.Message;
     }
 }