Hello,
I'm using Infragistics 2009.2 and I have a XamDataGrid that bind to a DataTable.
I made a summary row for 4 fields in my table but I still have some questions:
1. Is it possible to remove or change the "Grand Summaries" title in the SummaryDisplayArea? (See pic)
2. Is it possible to remove the "Sum=" ? (See pic)
3. Is it possible to chang the hight of the SummaryDisplayArea?
Hello Roy,
I am really glad to hear you got this resolved. Please verify the thread as resolved so it can help other users as well.
TNX Elena, that was very helpfull.
This is the way I solved the problem, if anyone else would be interested:
To adjust the hight:
<Style TargetType="{x:Type igDP:SummaryResultPresenter}"> <Setter Property="Height" Value="15"/> <EventSetter Event="Loaded" Handler="xdg_Loaded"/></Style>
To hide the "Grand Summaries":
<
igDP:FieldLayoutSettings SummaryDescriptionVisibility="Collapsed">
The text you want to change is displayed within a TextBlock in the SummaryResultPresenter, so in order to change the appearance of the result and the size of the area I can suggest you create a style for the SummaryResultPresenter as follows:
<Style TargetType="{x:Type igDP:SummaryResultPresenter}">
<Setter Property="Height" Value="100"/>
<EventSetter Event="Loaded" Handler="xdg_Loaded"/>
</Style>
Further you can get the TextBlock element that actually contains the text and change it manually to the value you want:
private void xdg_Loaded(object sender, RoutedEventArgs e)
{
TextBlock tb=Utilities.GetDescendantFromType((sender as SummaryResultPresenter), typeof(TextBlock), true) as TextBlock;
tb.Text = (sender as SummaryResultPresenter).SummaryResult.Value.ToString();
}
If you need any further assistance on this, please do not hesitate to ask.