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 315 Property or indexer 'Infragistics.Web.UI.GridControls.Paging.PageCount' cannot be assigned to -- it is read only
Below error is there while fixing the code:
uGrid.Behaviors.Paging.PageCount = (int)Math.Ceiling(Double.Parse(ds.Tables["PageCount"].Rows[0][0].ToString()) / gridPageSize);
Hello,
It is expected since .PageCount is only a getter that returns the number of pages, you cannot change this value.
Please let me know what you want to achieve so that I can suggest accordingly.
I'm just following up to see if you need any further assistance with this issue. If so please let me know.
As per your answer, I also don't want to change the value, so let me know how to fix below line where .PageCount is coming ---- do i need to remove that , please let me know:
Old code code:
uGrid.DisplayLayout.Pager.PageCount = (int)Math.Ceiling(Double.Parse(ds.Tables["PageCount"].Rows[0][0].ToString()) / gridPageSize);
Below error is there while fixing the code using WebHierarchicalDataGrid:
Hi Jack,
You say you do not want to change the value of PageCount but this is what this line tries to do. Please ignore this approach where you try to replace every single line of code with alternative, but rather think of what you want to achieve and how you can do it with methods exposed by the WebDataGrid.
hello
I have a WebHierarchicalDataGrid and how can i get
uGrid.Behaviors.Paging.PageCountPlease give your help with example and straight forward.