Back to Devexpress

CustomSummaryEventArgs.Item Property

corelibraries-devexpress-dot-data-dot-customsummaryeventargs-a6956fb3.md

latest3.0 KB
Original Source

CustomSummaryEventArgs.Item Property

Gets a summary item whose value is being calculated.

Namespace : DevExpress.Data

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public object Item { get; }
vb
Public ReadOnly Property Item As Object

Property Value

TypeDescription
Object

An object representing a summary item whose value is being calculated.

|

Remarks

The actual type of returned object depends upon the control and summary type you use. Thus, you should typecast to access the summary item’s specific settings.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Item 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.

winforms-grid-customize-footer-menu-calculate-custom-totals/CS/Form1.cs#L74

csharp
{
    GridColumnSummaryItem item = e.Item as GridColumnSummaryItem;
    GridView view = sender as GridView;

winforms-grid-customize-footer-menu-calculate-custom-totals/VB/Form1.vb#L65

vb
Private Sub gridView1_CustomSummaryCalculate(ByVal sender As Object, ByVal e As DevExpress.Data.CustomSummaryEventArgs)
    Dim item As GridColumnSummaryItem = TryCast(e.Item, GridColumnSummaryItem)
    Dim view As GridView = TryCast(sender, GridView)

See Also

IsTotalSummary

IsGroupSummary

SummaryItem

Item

Summaries

CustomSummaryEventArgs Class

CustomSummaryEventArgs Members

DevExpress.Data Namespace