Hello,
How can I modify the style of the group-by record in xamDataGrid programmatically?
I want the end user to be able to change the background color of the record at runtime, and I want to make the text center in the record
Thanks
Hi Khaled,In order to center the text in the GroupByRecords and change the color of their backgrounds, you could set the HorizontalContentAlignment of GroupByRecordPresenter to "Center" and modify its template by changing the Fill color property of one of the Rectangles, contained in the "highlight" Border element.To illustrate this approach I have set a sample application which you may find attached to this forum post.Please let me know if I could be of further help on the matter.Best Regards,Milana Zhileva
Hello Khaled,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
We are also having a related issue. We have a YEAR column, which displays properly as 2014, 2015, etc in the XamDataGrid itself. However, when we GroupBy that column in the grid, it's displayed as 2,014.00 (1 item), 2,015.00 (3 items), etc. I have these field settings:
<igDP:XamDataGrid.FieldSettings> <igDP:FieldSettings AllowEdit="True" AllowResize="True" AllowFixing="Near" AllowRecordFiltering="True" CellClickAction="SelectRecord" GroupByRecordPresenterStyleSelector="{StaticResource FieldStyleSelector}" EditorStyleSelector="{StaticResource FieldStyleSelector}"/></igDP:XamDataGrid.FieldSettings>
Hello Danielle,
Thank you for your post.
I have been looking into it, but it seems like I am missing something about your scenario, so if this is still an issue for you, could you please send me, an isolated sample project, where this is reproduced, so I can investigate it further for you.
If you require any further assistance please do not hesitate to ask.
Hi,
I submitted my issue and example in another thread.
http://www.infragistics.com/community/forums/p/95541/471955.aspx#471955
Thanks,
Danielle