I have an SfDataGrid with approximately 10 summary rows and 50 data rows.
The grid has the copy option to include headers configured.
{
SfDataGrid1.CopyOption = CopyOptions.CopyData | CopyOptions.IncludeHeaders;
SfDataGrid1.ClipboardController.CopyRowsToClipboard(0, totalRows - 1);
}
There are 2 problems.
1. Copying all of the rows does not copy the data in the summary rows.
2. Copying all of the rows does not copy the data when a summary row is collapsed.
I was following the example of copying rows without selecting...
https://help.syncfusion.com/windowsforms/datagrid/clipboardoperations#copy-rows-without-selecting
So, how can I copy *everything from the SfDataGrid that is shown to the user including the summary rows?
And two, how can I copy the data without the summary rows being expanded?
Does anyone have any thoughts on this?
Please note that all data rows are copied (not summary rows) when all summaries are expanded, but I require the user to get all data regardless if a summary is expanded or collapsed.