private void FillDataInGrid() { string PortalId = ddlPortalList.SelectedValue; bool IsSecure = Convert.ToBoolean(ddlIsSecure.SelectedValue); if (!string.IsNullOrEmpty(PortalId)) { TabController tab_obj = new TabController(); List <aspnet_Tab> lstTabs = tab_obj.GetListByPortalIdIsSecure(Convert.ToInt32(PortalId), IsSecure); GridView1.ShowHeaderWhenEmpty = true; GridView1.PageSize = 15; GridView1.EmptyDataText = "No Record Found !!!"; GridView1.DataSource = lstTabs; GridView1.DataBind(); } }