Skip to content

Commit 367fb58

Browse files
ES-976509 - Modified the content and added the images
1 parent 8f854b1 commit 367fb58

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
# How to get the summary row value from Windows Forms DataGrid(SfDataGrid)
2-
## About the sample
3-
This example illustrates how to get the summary row value from Windows Forms DataGrid(SfDataGrid)
1+
# How to Get the Summary Row Value from WinForms DataGrid?
42

5-
SfDataGrid allows you, to retrieve the value of summary rows by using the SummaryCreator.GetSummaryDisplayTextForRow() method when GridSummaryRow.ShowSummaryInRow is true.
6-
```c#
3+
This example illustrates how to get the summary row value from [WinForms DataGrid](https://www.syncfusion.com/winforms-ui-controls/datagrid) (SfDataGrid).
4+
5+
SfDataGrid allows you, to retrieve the value of summary rows by using the `SummaryCreator.GetSummaryDisplayTextForRow` method when [GridSummaryRow.ShowSummaryInRow](https://help.syncfusion.com/cr/windowsforms/Syncfusion.WinForms.DataGrid.GridSummaryRow.html#Syncfusion_WinForms_DataGrid_GridSummaryRow_ShowSummaryInRow) is true.
6+
7+
``` csharp
78
var summary = this.sfDataGrid.View.Records.TableSummaries[0];
89
var value = SummaryCreator.GetSummaryDisplayTextForRow(summary, this.sfDataGrid.View);
910
MessageBox.Show(value);
10-
1111
```
12-
And you can also retrieve the value of each summary column by using the SummaryCreator.GetSummaryDisplayText() method when GridSummaryRow.ShowSummaryInRow is false.
12+
13+
![Getting the summary row value using GetSummaryDisplayTextForRow method](ValueFromGetSummaryDisplayTextForRow.png)
14+
15+
And you can also retrieve the value of each summary column by using the SummaryCreator.GetSummaryDisplayText method when [GridSummaryRow.ShowSummaryInRow](https://help.syncfusion.com/cr/windowsforms/Syncfusion.WinForms.DataGrid.GridSummaryRow.html#Syncfusion_WinForms_DataGrid_GridSummaryRow_ShowSummaryInRow) is false.
16+
1317
```c#
1418
var summary = this.sfDataGrid.View.Records.TableSummaries[0];
1519
//Retrieves the summary row value of the Quantity column.
1620
var value = SummaryCreator.GetSummaryDisplayText(summary, "Quantity", this.sfDataGrid.View);
1721
MessageBox.Show(value);
1822
```
1923

20-
## Requirements to run the demo
21-
Visual Studio 2015 and above versions
24+
![Getting the summary row value using GetSummaryDisplayText method](ValueFromGetSummaryDisplayText.png)

ValueFromGetSummaryDisplayText.png

207 KB
Loading
212 KB
Loading

0 commit comments

Comments
 (0)