Reputation: 20464
I've read this official example to export to excel in WinForms, If I set the datasource of the RadGridView every works as expected, but If I add manually the columns and if I add manually some rows (GridViewRowInfo
) then those rows are not exported using this method (only the columns are exported), What I'm missing to export my manually added rows?.
Upvotes: 0
Views: 1611
Reputation: 3120
I have put a small example in unbound mode and it seems to be exported correctly both rows and columns:
RadGridView grid = new RadGridView();
grid.Columns.Add("Col1");
grid.Columns.Add("Col2");
for (int i = 0; i < 10; i++)
{
grid.Rows.Add("cell 1" , "cell 2");
}
ExportToExcelML exporter = new ExportToExcelML(grid);
exporter.RunExport("D:\\test.slx");
Upvotes: 1