I am converting Infragistics 2010 v2 CLR3.5 to Infragistics 2014 v2 using 4.5 CLR using Visual Studio 2013 Professional Update 4. I am getting following error while building the project. Please reply immediately..........
Error 230 'System.Web.UI.WebControls.PageEventArgs' does not contain a definition for 'NewPageIndex' and no extension method 'NewPageIndex' accepting a first argument of type 'System.Web.UI.WebControls.PageEventArgs' could be found (are you missing a using directive or an assembly reference?)
Below error is there while fixing the code:
private void grid_PageIndexChanged(object sender, PageEventArgs e) { int tableID, pIndex, tIndex, gridPageSize; string tableNM, DB, filterExp = "", sortExp = ""; pIndex = e.NewPageIndex; tIndex = contentTab.SelectedIndex + 1;
Hello Jack,
The PageEventArgs now contain only the OldPageIndex. You can get the new page index like this:
protected void WebHierarchicalDataGrid1_PageIndexChanged(object sender, PagingEventArgs e)
{
int pageIndex = (sender as ContainerGrid).Behaviors.Paging.PageIndex;
}
Let me know if I can be of further help.
I'm just following up to see if you need any further assistance with this issue. If so please let me know.