This question is locked. New answers and comments are not allowed.
I have a grid that is bound to a table via RIA services and it also includes paging (in this case, 50 items per page). Within a single page of the grid, I want to loop thru the items and get a reference to the GridViewRow object for a specific row so that I can use the Measure() routine on the row object to determine its height.
I know that I can use the grid Items collection to get to all of the rows, whether they are visible or not. But the object that it returns, using something like grid.Items[CurrentRow], is an object based on the type of record that is bound to the grid. Using the other methods for getting the grid row like ChildrenOfType<GridViewRow> or ItemContainerGenerator.ContainerFromIndex will only return a row object for rows that are currently visible.
Is there a way to get a reference to the GridViewRow for rows that are not visible for the current grid page? Or is there another way to determine the row height? My grids are dynamic in that users can specify different font sizes, which impact row height, so I do not have any explicit row height set that I can query.
Thanks,
Randy
I know that I can use the grid Items collection to get to all of the rows, whether they are visible or not. But the object that it returns, using something like grid.Items[CurrentRow], is an object based on the type of record that is bound to the grid. Using the other methods for getting the grid row like ChildrenOfType<GridViewRow> or ItemContainerGenerator.ContainerFromIndex will only return a row object for rows that are currently visible.
Is there a way to get a reference to the GridViewRow for rows that are not visible for the current grid page? Or is there another way to determine the row height? My grids are dynamic in that users can specify different font sizes, which impact row height, so I do not have any explicit row height set that I can query.
Thanks,
Randy
