I don't understand how can I obtain rows of particular page (current page also), then get single cell and update it.
I would click to next page for example, view rows of this page and update specific column of these rows.
How can I do it?
2 Answers, 1 is accepted
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 26 Nov 2015, 09:18 AM
Hello Dario,
Thank you for writing.
RadGridView exposes two collections that contain data rows:
Rows - this collections contains all data rows that belong to RadGridView. Data operations such as grouping, sorting, filtering, paging etc. do not change the content of the collection or the order in which the row objects exist in the collection.
ChildRows. This collection returns the data rows that are currently represented by RadGridView in the order in which they appear. The collection is modified every time a data operation (grouping, sorting, filtering, paging) occurs.
Hence, in order to get the rows at the current page, you can use the ChildRows collection. Accessing rows from other pages can be achieved by the Rows collection which stores all the rows. You should use the MasterTemplate's PageIndex and PageSize properties in order to get the rows subset of a particular page.
I hope this information helps. Should you have further questions I would be glad to help.
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items