aspnet-devexpress-dot-web-dot-aspxsummaryitembase-4dddad8a.md
Gets or sets the name of a data source field whose values are used for summary calculation.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue("")]
public virtual string FieldName { get; set; }
<DefaultValue("")>
Public Overridable Property FieldName As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A String value that specifies the name of the data source field.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the FieldName property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
asp-net-web-forms-grid-create-report-based-on-grid-layout/CS/WebApplication1/ReportHelper.cs#L64
foreach(ASPxSummaryItem item in aspxGridView1.GroupSummary) {
GridViewColumn col = aspxGridView1.Columns[item.FieldName];
if(col != null) {
foreach (ASPxSummaryItem currentItem in gridView.GroupSummary) {
if (currentItem.FieldName == fieldName) {
currentItem.ShowInGroupFooterColumn = modelColumn.Caption.ToUpper();
asp-net-mvc-grid-create-report-based-on-grid-layout/CS/E4755/Models/MVCxGridViewState.cs#L89
public MVCxSummaryItemState(ASPxSummaryItem item) {
FieldName = item.FieldName;
ShowInColumn = item.ShowInColumn;
asp-net-web-forms-grid-create-report-based-on-grid-layout/VB/WebApplication1/ReportHelper.vb#L66
For Each item As ASPxSummaryItem In aspxGridView1.GroupSummary
Dim col As GridViewColumn = aspxGridView1.Columns(item.FieldName)
If col IsNot Nothing Then
For Each currentItem As ASPxSummaryItem In gridView.GroupSummary
If currentItem.FieldName = fieldName Then
currentItem.ShowInGroupFooterColumn = modelColumn.Caption.ToUpper()
asp-net-mvc-grid-create-report-based-on-grid-layout/VB/E4755/Models/MVCxGridViewState.vb#L183
Public Sub New(ByVal item As ASPxSummaryItem)
FieldName = item.FieldName
ShowInColumn = item.ShowInColumn
See Also
Online Demo: Grid - Grid Totals
Online Demo: Card View - Total Summary