Hi... I am using xamdatagrid and i am doing default 3 columns as group by.It is coming correctly but it is displaying only column values.I am sending the example (attachment of image) so that i want header name in group header
Hi Vinod,
The grouping should be done on the UI thread.
In general, with use of the summaries and increasing performance you can try setting the SummaryCellContainerGenerationMode of DataPresenterBase to Recycle. See the following code snippet for an example.
<Style TargetType="{x:Type igDP:DataPresenterBase}"> <Setter Property="SummaryCellContainerGenerationMode" Value="Recycle"></Setter> </Style>
I have also attached a modified version of Stefan's sample that uses MVVM with threaded summary calculations for demonstration.
XamDataGridGroupByDescription.zip
If you have any further questions or concerns with this, please let me know.
can you please help me with the same solution with MVVM and on different thread for better performance
Hello,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
thanks stefan.... its working fine... thanks a lot....
I have modified the sample I sent you before, so now it works if you add the Groups in XAML, too. Basically I handled the GroupByRecordPresenter’s Loaded event and use the same logic as before. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.