public void PopulateData() { try { DataSet ds = emp.ShowReportEmployeeVisa(); if (ds.Tables[0].Rows.Count != 0) { GridViewVisa.DataSource = ds.Tables[0]; GridViewVisa.DataBind(); } } catch (Exception ex) { lblMsg.Text = ex.Message; } }