private void getgeneratedMoneyList() { try { UserAccountBLL userAccount = new UserAccountBLL(); DataTable dt = userAccount.getGeneratedMoneyList(); GridViewGeneratedMoneyList.DataSource = dt; GridViewGeneratedMoneyList.DataBind(); if (dt.Rows.Count < 1) { msgbox.Attributes.Add("Class", "alert alert-warning"); msgbox.Visible = true; msgTitleLabel.Text = "Data Not Found!!!"; msgDetailLabel.Text = ""; } GridviewHeadStyle(); } catch (Exception) { //throw; } }