private void BindGrid() { BL_AddBook objBL = new BL_AddBook(); EWA_AddBook objEWA = new EWA_AddBook(); objEWA.OrgId = Convert.ToInt32(Session["OrgId"]); DataSet ds = objBL.GetBook_BL(objEWA); if (ds.Tables[0].Rows.Count > 0) { GridView1.DataSource = ds; GridView1.DataBind(); } else { Response.Write("<script>alert('Record Not Found...!')</script>"); } }