Ok thanks.
I've another question for you.
Could I Export all element of my radGridview?
For useful I create a paging on my RadGridView(because the Item displayed are 19000), but when I export the data (in Csv and in Xml), the system Export me only 20 elements(the elements per page). I know is correct, but I need to export all the element.
Could you help me:
Follow I attach the try-catch code for the export:
try
{
//Export Per File XLS
ExportToExcelML exporterXLS = new ExportToExcelML(newGridView);
exporterXLS.HiddenColumnOption = Telerik.WinControls.UI.Export.HiddenOption.ExportAlways;
exporterXLS.ExportVisualSettings = true;
exporterXLS.SheetMaxRows = ExcelMaxRows._1048576;
exporterXLS.SheetName = "Sheet";
exporterXLS.SummariesExportOption = SummariesOption.DoNotExport;
string fileNameXLS = "ExportXLS_" + DateTime.Now.ToString("dd_MM_yyyy_HH_mm_ss");
exporterXLS.RunExport(fileNameXLS);
//Export Per dati CSV
ExportToCSV exporterCSV = new ExportToCSV(newGridView);
exporterCSV.HiddenColumnOption = Telerik.WinControls.UI.Export.HiddenOption.ExportAlways;
exporterCSV.SummariesExportOption = SummariesOption.DoNotExport;
string fileNameCSV = "ExportCSV_" + DateTime.Now.ToString("dd_MM_yyyy_HH_mm_ss");
exporterCSV.RunExport(fileNameCSV);
MessageBox.Show("Esportazione Dati Riuscita Correttamente", "Avviso", MessageBoxButtons.OK);
}
catch (Exception Ex)
{
MessageBox.Show("Errore, Esportazione Dati Non Avvenuta, Problema Dovuto al Seguente Errore: " + Ex.Message, "Attenzione", MessageBoxButtons.OK);
}