You can iterate the columns via the ColumnsCollection property. To iterate the data you can use the View property - it contains the current "view" of the data - with applied paging, sorting and filtering.
This is how we have styled it. Can be changed with CSS:
I am looking forward to the update of the document.
I have an additional question. The view property contains entities, but we cannot know the sequence of the data grid column. Thus, do we need to use object reflection to iterate the data grid? I attached my code. Is it the best practice? Thank you.
Hi @korchev
I want to iterate a data grid and print the content of each cell, from the first row, the first column, to the next column, and then the next row. The problem is that only ColumnsCollection records the sequence of columns, so the only way I can think of right now is to use reflection. I hope there will be a better way to do that.
For example, print 1,2,3,4,5,6,7,8,9 for the following data grid.