How do i get rid of the label name in the group header? I have formatted the summary definition using the string format property but it keeps adding the column label name to it, I don't want the column label name in the description.
I think that you might have a chance by using an "invisible" column as summary source with an label which contains only a space and setting its max width to zero:
<igDP:Field Label=" " Name="SomeValue"> <igDP:Field.Settings> <igDP:FieldSettings CellMaxWidth="0"/> </igDP:Field.Settings></igDP:Field>
I developed only this way to display the summary definition without displaying the column. If you set the columns visibility to "Collapsed" the summary is not shown. If you set the Label to String.Empty the Grid will use the Name as display.
It does remove column label name. But it's an ugly solution because it expands the row a lot.
Can this bug be fixed in the next NetAdvantage service pack?
p.s. the link you gave doesn't work
Hello,
One way to accomplish this would be to set the XamDataGrid's FieldLayoutSettings.GroupBySummaryDisplayMode to SummaryCellsAlwaysBelowDescription. While it expands out the group by rows a bit so that the summary can be displayed below the description it does remove the column names.
For more information about the GroupBySummaryDisplayMode property please see the following article in the documentation:
<http://help.infragistics.com/NetAdvantage/WPF/Current/CLR4.0/?page=InfragisticsWPF4.DataPresenter.v10.2~Infragistics.Windows.DataPresenter.FieldLayoutSettings~GroupBySummaryDisplayMode.html>
Please let me know if you have any further questions or concerns about this approach.
Hi,
I am also facing the same problem. I dont want to display the Column name in the summary, is there any way to do it??
For example I set the string format for the calculator as below, but it prefixes column name to this.
summaryDefinition.StringFormat =
"Avg = {0:#,###.#000}";
This doesn't work as I have a read only grid. Is there some other way? This is really frustrating since I am using a string format on the summaries it will display correctly at the footer of the grid but keeps adding the column name in the group by description.