I am trying to use a datagrid paging feature . I get a CS0122 PageIndexChanged(object, System.Web.UI.WebControls.DataGridPageChangedEventArgs)' is inaccessible due to its protection level)
I have the following lines in the aspx page asp:datagrid id="SearchDataGrid" runat="server" Width="664px" CssClass="searchList" AllowPaging="True" AutoGenerateColumns="False" OnPageIndexChanged="PageIndexChanged" .... I wrote a void PageIndexChanged(object sender, DataGridPageChangedEventArgs e) { SearchDataGrid.CurrentPageIndex = e.NewPageIndex; IList results = (IList)this.Session["Search Results"]; GetDataSetFromData(results); } Any help will be appreciated . And i am using datagrid soley for UI purposes. Thanks =================================== This list is hosted by DevelopMentorŪ http://www.develop.com NEW! ASP.NET courses you may be interested in: 2 Days of ASP.NET, 29 Sept 2003, in Redmond http://www.develop.com/courses/2daspdotnet Guerrilla ASP.NET, 13 Oct 2003, in Boston http://www.develop.com/courses/gaspdotnet View archives and manage your subscription(s) at http://discuss.develop.com