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
Thank you for your post. I have been looking into and I created a sample project for you with the functionality you want. Basically I handled the XamDataGrid’s Grouped event and in its handler I iterate through all the GroupedRecords and apply a Format to their Description as you demand. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi... Thanks for ur post.It really works when xamdatagrid doesnt has default grouping.I am using default grouping and it doesnt work for me.i have modified ur application by adding the default grouping as
<igDP:XamDataGrid Grouped="xamDataGrid1_Grouped" BindToSampleData="True" Name="xamDataGrid1" > <igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:FieldLayout.SortedFields> <igDP:FieldSortDescription IsGroupBy="True" FieldName="name" Direction="Descending" /> </igDP:FieldLayout.SortedFields> </igDP:FieldLayout> </igDP:XamDataGrid.FieldLayouts> </igDP:XamDataGrid>
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.
thanks stefan.... its working fine... thanks a lot....
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.