My XamDataGrid has a child table that is automatially given a header identifying the entire table. The data source is a DataSet and I use the following XAML to change the title of the header:
<
igDP:Field Name="FK_Templates_BetConfiguration" Label="Bet Configuration:"/>
That works just fine. I have been unable to find a way to style the child table's label so that it doesn't affect the child table's column headers (or doesn't require me to re-write ExpandableFieldRecordPresenter). So, the natural question is how do I do this?
Thanks!
Thank you sir!
Not much.
We are trying to keep the structure similar as much as possible, unless some big change is needed.
Hi Alex,
That worked! Now that I am modifying the actual template, what is the risk with future versions of the control?
Thanks.
Regarding the theme,
You should place that style inside the Resources of the XamDataGrid itself, and nowhere up the element tree, as this style will not be picked up, because of the theme.
Well, you are right, my style needed some modifications, I am sorry.
I took the full style from the DefaultStyles directory in the Infragistics folder (you should have a copy of that too) and used it, because the background property is actually bound to a Grid element, which wraps everything around. What I did is changed the template binding of the background property to go to a Border element in the PART_RecordContentSize element, which is the "Header Alpha" in your case. So, the converter stays the same, just modify the style. I am attaching it in a text file, so you can copy-paste it.
Please let me know if you have further questions on this.