diff --git a/README.md b/README.md index e575d7b..b1871c3 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,19 @@ -# How to get the summary row value from Windows Forms DataGrid(SfDataGrid) -## About the sample -This example illustrates how to get the summary row value from Windows Forms DataGrid(SfDataGrid) +# How to Get the Summary Row Value from WinForms DataGrid? -SfDataGrid allows you, to retrieve the value of summary rows by using the SummaryCreator.GetSummaryDisplayTextForRow() method when GridSummaryRow.ShowSummaryInRow is true. -```c# +This example illustrates how to get the summary row value from [WinForms DataGrid](https://www.syncfusion.com/winforms-ui-controls/datagrid) (SfDataGrid). + +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. + +``` csharp var summary = this.sfDataGrid.View.Records.TableSummaries[0]; var value = SummaryCreator.GetSummaryDisplayTextForRow(summary, this.sfDataGrid.View); MessageBox.Show(value); - ``` -And you can also retrieve the value of each summary column by using the SummaryCreator.GetSummaryDisplayText() method when GridSummaryRow.ShowSummaryInRow is false. + +![Getting the summary row value using GetSummaryDisplayTextForRow method](ValueFromGetSummaryDisplayTextForRow.png) + +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. + ```c# var summary = this.sfDataGrid.View.Records.TableSummaries[0]; //Retrieves the summary row value of the Quantity column. @@ -17,5 +21,4 @@ And you can also retrieve the value of each summary column by using the SummaryC MessageBox.Show(value); ``` -## Requirements to run the demo -Visual Studio 2015 and above versions +![Getting the summary row value using GetSummaryDisplayText method](ValueFromGetSummaryDisplayText.png) diff --git a/ValueFromGetSummaryDisplayText.png b/ValueFromGetSummaryDisplayText.png new file mode 100644 index 0000000..515f3f9 Binary files /dev/null and b/ValueFromGetSummaryDisplayText.png differ diff --git a/ValueFromGetSummaryDisplayTextForRow.png b/ValueFromGetSummaryDisplayTextForRow.png new file mode 100644 index 0000000..d0919a7 Binary files /dev/null and b/ValueFromGetSummaryDisplayTextForRow.png differ