Hi,
I have a gridview contains 2+ Millions rows and around 5 columns, I want to export the gridview as Excel or PDF document. When call export, I get rowIndex out of bound exception.
Here is the way I used to export as Excel
exportGridView.ExportToXlsx(stream, new GridViewDocumentExportOptions
{
AutoFitColumnsWidth = true,
ExportDefaultStyles = true,
});
=============================
and this is the way I export as PDF
exportGridView.ExportToPdf(stream, new GridViewPdfExportOptions
{
AutoFitColumnsWidth = true,
ExportDefaultStyles = true,
});
Best regards,
Ahmed