This question is locked. New answers and comments are not allowed.
Hello,
I am currently trying to export to excel using the GridView's export functionality. I want to record all the rows that I am exporting, so I am using the e.Element == ExportElement.Row to figure out when a row is being printed and then grab the e.Context, cast into my data class and store it in a list. However, after several records are printed, e.Context just returns null values.
Why is this happening? Is it because of Row Virtualization?
I know in your GridView example of exporting RowDetails, you use Exported trigger and e.Context of the grid view to print the RowDetails section of the grid. You only show an example of 5 records...Will e.Context just return null after several of records?
I will greatly appreciate a response.
-George
I am currently trying to export to excel using the GridView's export functionality. I want to record all the rows that I am exporting, so I am using the e.Element == ExportElement.Row to figure out when a row is being printed and then grab the e.Context, cast into my data class and store it in a list. However, after several records are printed, e.Context just returns null values.
Why is this happening? Is it because of Row Virtualization?
I know in your GridView example of exporting RowDetails, you use Exported trigger and e.Context of the grid view to print the RowDetails section of the grid. You only show an example of 5 records...Will e.Context just return null after several of records?
I will greatly appreciate a response.
-George