Hello, please help me ...
What I did wrong here is that I don't want a caption summary title
Note that the summary works normally but the title does not
Here is my code example:
GridSummaryRow captionSummaryRow = new GridSummaryRow ();
captionSummaryRow.Name = "CaptionSummary";
captionSummaryRow.ShowSummaryInRow = false;
captionSummaryRow.TitleColumnCount = 3;
captionSummaryRow.Title = "Total Price: TEST";
// Creates the GridSummaryColumn1.
GridSummaryColumn summaryColumn1 = new GridSummaryColumn ();
summaryColumn1.Name = "OrderDate";
summaryColumn1.Format = "{Count: d}";
summaryColumn1.MappingName = "Birinci Tarix (Qutu)";
summaryColumn1.SummaryType = SummaryType.CountAggregate;
captionSummaryRow.SummaryColumns.Add (summaryColumn1);
// Initializes the caption summary row.
this.sfGRID.CaptionSummaryRow = captionSummaryRow;
I sent you a file with the result
Thank you big :)
Attachment: testcaption_dbe60e6e.zip
Hello again,
This issue is very important, please help
Hi Murad Jafarov,
Your requirement to only display the column summary in CaptionSummaryRow of
SfDataGrid can be achieved by removing the TitleColumnCount, Title and disabling
the ShowSummaryInRow property in CaptionSummaryRow. Please
refer to the below code snippet,
|
GridSummaryRow captionSummaryRow = new GridSummaryRow();
captionSummaryRow.Name = "CaptionSummary";
captionSummaryRow.ShowSummaryInRow = false;
// Creates the GridSummaryColumn1.
GridSummaryColumn summaryColumn1 = new GridSummaryColumn();
summaryColumn1.Name = "OrderDate";
summaryColumn1.Format = "{Count:d}";
summaryColumn1.MappingName = "Birinci Tarix (Qutu)";
summaryColumn1.SummaryType = SummaryType.CountAggregate;
captionSummaryRow.SummaryColumns.Add(summaryColumn1);
// Initializes the caption summary row. this.sfDataGrid1.CaptionSummaryRow = captionSummaryRow;
|
UG Link: https://help.syncfusion.com/windowsforms/datagrid/summaries#displaying-caption-summary-for-column
Please find the sample in the attachment and let us know if you have any
concerns in this.
Regards,
Vijayarasan S
I understand you ... But I'm talking about a completely different problem .... I want it to be both captiontext.title and summary .... I did everything as mentioned on your site ..but the result is different..I have summary but captiontext.title does not react! Please help ... I would be very happy if I could convey my thoughts to you .....
I sent you a lot of pictures..I hope you will understand ... Pay attention to the names of the files I sent
SAVE ME FROM THİS TROUBLE
BİG THANKS!
This is the code you specified on the site:
GridSummaryRow captionSummaryRow = new GridSummaryRow ();
captionSummaryRow.Name = "CaptionSummary";
captionSummaryRow.ShowSummaryInRow = false;
captionSummaryRow.TitleColumnCount = 3;
captionSummaryRow.Title = "Total Price: {PriceAmount} for {ProductCount} Products";
// Creates the GridSummaryColumn1.
GridSummaryColumn summaryColumn1 = new GridSummaryColumn ();
summaryColumn1.Name = "OrderDate";
summaryColumn1.Format = "{Count: d}";
summaryColumn1.MappingName = "OrderDate";
summaryColumn1.SummaryType = SummaryType.CountAggregate;
Here is the code I wrote:
GridSummaryRow captionSummaryRow = new GridSummaryRow();
captionSummaryRow.Name = "captionsummary";
captionSummaryRow.ShowSummaryInRow = false;
captionSummaryRow.TitleColumnCount = 3;
captionSummaryRow.Title = "Total Price: TEST";
// Creates the GridSummaryColumn1.
GridSummaryColumn summaryColumn1 = new GridSummaryColumn();
summaryColumn1.Name = "1-ci ay";
summaryColumn1.Format = "{Sum}";
summaryColumn1.MappingName = "Birinci Tarix (Qutu)";
summaryColumn1.SummaryType = SummaryType.DoubleAggregate;
captionSummaryRow.SummaryColumns.Add(summaryColumn1);
this.sfGRID.CaptionSummaryRow = captionSummaryRow;
Hi Murad Jafarov,
We have prepared the simple sample based on a provided code snippet from our
end. The reported issue “Displaying column summary with title does not show in
SfDataGrid” and is unable to replicate the issue from our end. It is working fine
as expected. Please find the tested sample and video in the attachment.
If you still facing the same
issue, provide more information related to your query?
1. Code snippet related to customization of caption summary style
2. Code snippet related to customization
of SfDataGrid
3. If possible, kindly modify the sample
based on your scenario.
Kindly
revert to us with the above requested details. It will be more helpful for us
to check the possibilities to resolve the reported problem.
Regards,
Vijayarasan S
Thank you for your attention.
I found out what the problem was
now everything works fine :)
Hi Murad Jafarov,
We are glad to know that the reported problem has been resolved at your end.
Please let us know if you have any further queries on this. We are happy to
help you😊.
Regards,
Vijayarasan S