11---
22layout : post
33title : Summary | SfDataGrid | Xamarin.Android | Syncfusion
4- description : Learn here about summaries in Syncfusion Essential Xamarin.Android SfDataGrid Control, its elements, and more .
4+ description : How to apply summaries for the elements in a SfDataGrid .
55platform : Xamarin.Android
66control : SfDataGrid
77documentation : UG
88---
99
10- # Summary in Xamarin.Android SfDataGrid
10+ # Summary
1111
1212The data grid supports displaying concise information about bound data objects using summaries. It provides the following summary types:
1313
1414* ** Caption Summary** : Used to display the summary information in the caption of the group.
1515* ** Group Summary** - Used to display summary information of data objects in each group.
1616* ** Table Summary** : Used to display the summary information at top and/or bottom in the data grid.
1717
18- ![ Xamarin.Android SfDataGrid summary ] ( SfDataGrid_images/Summary.PNG )
18+ ![ ] ( SfDataGrid_images/Summary.PNG )
1919
2020Summary rows are represented by using the [ GridSummaryRow] ( http://help.syncfusion.com/cr/xamarin-android/Syncfusion.SfDataGrid.GridSummaryRow.html ) . Each ` GridSummaryRow ` hold the summary information of columns in the [ SummaryColumns] ( https://help.syncfusion.com/cr/xamarin-android/Syncfusion.SfDataGrid.GridSummaryRow.html#Syncfusion_SfDataGrid_GridSummaryRow_SummaryColumns ) property . ` SummaryColumns ` contains the collection of [ GridSummaryColumn] ( http://help.syncfusion.com/cr/xamarin-android/Syncfusion.SfDataGrid.GridSummaryColumn.html ) which carries the name, format, and summary aggregate type of the column.
2121
@@ -30,7 +30,7 @@ The data grid provides built-in support for caption summaries. The caption summa
3030
3131The following screenshot shows the built-in caption summary of a group:
3232
33- ![ Xamarin.Android SfDataGrid caption summaries ] ( SfDataGrid_images/Captionsummaries.PNG )
33+ ![ ] ( SfDataGrid_images/Captionsummaries.PNG )
3434
3535
3636### Formatting built-in caption summary
@@ -43,7 +43,7 @@ Default group caption format is `{ColumnName}: {Key} - {ItemsCount} Items`.
4343* ** Key** : Displays the key value of the group.
4444* ** ItemsCount** : Displays the number of items in a group.
4545
46- ![ Xamarin.Android SfDataGrid formatting summary ] ( SfDataGrid_images/Formattingbuiltincaptionsummary.PNG )
46+ ![ ] ( SfDataGrid_images/Formattingbuiltincaptionsummary.PNG )
4747
4848Customize the group caption text format by setting the ` SfDataGrid.GroupCaptionTextFormat ` property. The following code example illustrates how to customize group caption text in the data grid:
4949
@@ -54,7 +54,7 @@ dataGrid.GroupCaptionTextFormat = "{ColumnName} : {Key}";
5454
5555The following screenshot shows the outcome of the previous code:
5656
57- ![ Xamarin.Android SfDataGrid caption summary ] ( SfDataGrid_images/Formattingbuiltincaptionsummary_1.PNG )
57+ ![ ] ( SfDataGrid_images/Formattingbuiltincaptionsummary_1.PNG )
5858
5959
6060### Displaying summary in a row
@@ -84,7 +84,7 @@ dataGrid.CaptionSummaryRow= summaryRow;
8484
8585The following screenshot shows the outcome for both values of ` ShowSummaryInRow ` to ` true ` :
8686
87- ![ Xamarin.Android SfDataGrid summary in row ] ( SfDataGrid_images/Displayingsummaryinarow.PNG )
87+ ![ ] ( SfDataGrid_images/Displayingsummaryinarow.PNG )
8888
8989
9090### Displaying summary in a column
@@ -122,7 +122,7 @@ summaryRow.SummaryColumns.Add(new GridSummaryColumn()
122122dataGrid.CaptionSummaryRow= summaryRow;
123123{% endhighlight %}
124124
125- ![ Xamarin.Android SfDataGrid summary in column ] ( SfDataGrid_images/Displayingsummaryinacolumn.PNG )
125+ ![ ] ( SfDataGrid_images/Displayingsummaryinacolumn.PNG )
126126
127127## Group summary
128128
@@ -161,7 +161,7 @@ this.dataGrid.GroupSummaryRows.Add(new GridGroupSummaryRow()
161161});
162162{% endhighlight %}
163163
164- ![ Xamarin.Android SfDataGrid summary for entire row ] ( SfDataGrid_images/DisplayGroupSummaryForEntireRow.jpg )
164+ ![ ] ( SfDataGrid_images/DisplayGroupSummaryForEntireRow.jpg )
165165
166166### Displaying summary in the column
167167
@@ -199,7 +199,7 @@ this.dataGrid.GroupSummaryRows.Add(new GridGroupSummaryRow()
199199});
200200{% endhighlight %}
201201
202- ![ Xamarin.Android SfDataGrid summary for individual column ] ( SfDataGrid_images/DisplayGroupSummaryForIndividualColumn.jpg )
202+ ![ ] ( SfDataGrid_images/DisplayGroupSummaryForIndividualColumn.jpg )
203203
204204## Table summaries
205205
@@ -209,7 +209,7 @@ Add the table summary row in the data grid by adding [GridTableSummaryRow](https
209209
210210The following screenshot illustrates table summary rows in the data grid:
211211
212- ![ Xamarin.Android SfDataGrid table summary ] ( SfDataGrid_images/Tablesummaries1.PNG )
212+ ![ ] ( SfDataGrid_images/Tablesummaries1.PNG )
213213
214214{% highlight c#%}
215215GridTableSummaryRow summaryRow1 = new GridTableSummaryRow();
@@ -245,7 +245,7 @@ summaryRow2.SummaryColumns.Add(new GridSummaryColumn()
245245sfGrid.TableSummaryRows.Add(summaryRow2);
246246{% endhighlight %}
247247
248- ![ Xamarin.Android SfDataGrid summary table ] ( SfDataGrid_images/Tablesummaries2.PNG )
248+ ![ ] ( SfDataGrid_images/Tablesummaries2.PNG )
249249
250250### Displaying summary in a row
251251
@@ -274,7 +274,7 @@ sfGrid.TableSummaryRows.Add(summaryRow);
274274
275275The following screenshot shows the table summary row if ` ShowSummaryInRow ` is ` true ` :
276276
277- ![ Xamarin.Android SfDataGrid summary in row ] ( SfDataGrid_images/TableDisplayingsummaryinarow.PNG )
277+ ![ ] ( SfDataGrid_images/TableDisplayingsummaryinarow.PNG )
278278
279279### Displaying summary in a column
280280
@@ -313,7 +313,7 @@ sfGrid.TableSummaryRows.Add(summaryRow);
313313
314314The following screenshot shows the table summary row if ` ShowSummaryInRow ` is ` false ` :
315315
316- ![ Xamarin.Android SfDataGrid summary in column ] ( SfDataGrid_images/TableDisplayingsummaryinacolumn.PNG )
316+ ![ ] ( SfDataGrid_images/TableDisplayingsummaryinacolumn.PNG )
317317
318318### Positioning TableSummaryRows
319319
@@ -355,7 +355,7 @@ sfGrid.TableSummaryRows.Add(bottomSummaryRow);
355355
356356The following screenshot illustrates the positioning of table summary rows in the data grid:
357357
358- ![ Xamarin.Android SfDataGrid summary row ] ( SfDataGrid_images/PositioningTableSummaryRows.PNG )
358+ ![ ] ( SfDataGrid_images/PositioningTableSummaryRows.PNG )
359359
360360
361361## Formatting summary
@@ -382,7 +382,7 @@ summaryRow.SummaryColumns.Add(new GridSummaryColumn()
382382dataGrid.CaptionSummaryRow= summaryRow;
383383{% endhighlight %}
384384
385- ![ Xamarin.Android SfDataGrid summary function ] ( SfDataGrid_images/Definingsummaryfunction.PNG )
385+ ![ ] ( SfDataGrid_images/Definingsummaryfunction.PNG )
386386
387387### Formatting summary value
388388
@@ -403,7 +403,7 @@ summaryRow.SummaryColumns.Add(new GridSummaryColumn()
403403dataGrid.CaptionSummaryRow= summaryRow;
404404{% endhighlight %}
405405
406- ![ Xamarin.Android SfDataGrid formatting summary value ] ( SfDataGrid_images/Formattingsummaryvalue.PNG )
406+ ![ ] ( SfDataGrid_images/Formattingsummaryvalue.PNG )
407407
408408
409409### Displaying additional content in summary
@@ -425,7 +425,7 @@ summaryRow.SummaryColumns.Add(new GridSummaryColumn()
425425dataGrid.CaptionSummaryRow= summaryRow;
426426{% endhighlight %}
427427
428- ![ Xamarin.Android SfDataGrid content summary ] ( SfDataGrid_images/Displayingadditionalcontentinsummary.PNG )
428+ ![ ] ( SfDataGrid_images/Displayingadditionalcontentinsummary.PNG )
429429
430430
431431### Formatting summary for row using Title property
@@ -453,7 +453,7 @@ summaryRow.SummaryColumns.Add(new GridSummaryColumn()
453453dataGrid.CaptionSummaryRow= summaryRow;
454454{% endhighlight %}
455455
456- ![ Xamarin.Android SfDataGrid summary title property ] ( SfDataGrid_images/FormattingsummaryforrowusingTitleproperty.PNG )
456+ ![ ] ( SfDataGrid_images/FormattingsummaryforrowusingTitleproperty.PNG )
457457
458458N> The above formatting section is explained using ` CaptionSummary ` but the formatting can also be applied for ` TableSummaries ` .
459459
@@ -581,7 +581,7 @@ summaryRow.SummaryColumns.Add(new GridSummaryColumn
581581dataGrid.CaptionSummaryRow = summaryRow;
582582{% endhighlight %}
583583
584- ![ Xamarin.Android SfDataGrid custom summary ] ( SfDataGrid_images/Customsummaries.PNG )
584+ ![ ] ( SfDataGrid_images/Customsummaries.PNG )
585585
586586N> The above custom summaries section is explained using ` CaptionSummary ` but the custom summaries can also be applied for ` TableSummaries ` .
587587
@@ -660,7 +660,7 @@ public class GridTableSummaryCellRendererExt : GridTableSummaryCellRenderer
660660
661661The following screenshot shows the outcome upon execution of the above code:
662662
663- ![ Xamarin.Android SfDataGrid table summary ] ( SfDataGrid_images/Customizingtablesummary.PNG )
663+ ![ ] ( SfDataGrid_images/Customizingtablesummary.PNG )
664664
665665### Customizing caption summary
666666
@@ -703,7 +703,7 @@ public class GridCaptionSummaryCellRendererExt : GridCaptionSummaryCellRenderer
703703 }
704704{% endhighlight %}
705705
706- ![ Xamarin.Android SfDataGrid caption summary ] ( SfDataGrid_images/Customizingcaptionsummary.PNG )
706+ ![ ] ( SfDataGrid_images/Customizingcaptionsummary.PNG )
707707
708708### Customizing Group summary
709709
@@ -781,6 +781,6 @@ public class GridGroupSummaryCellRendererExt : GridGroupSummaryCellRenderer
781781}
782782{% endhighlight %}
783783
784- ![ Xamarin.Android SfDataGrid Customizing Group Summary ] ( SfDataGrid_images/CustomizingGroupSummary.jpg )
784+ ![ ] ( SfDataGrid_images/CustomizingGroupSummary.jpg )
785785
786786You can download the sample demo [ here] ( http://www.syncfusion.com/downloads/support/directtrac/general/ze/SummaryDemo-17513216751825467197 ) .
0 commit comments