corelibraries-devexpress-dot-data-dot-customsummaryeventargs-a6956fb3.md
Gets a summary item whose value is being calculated.
Namespace : DevExpress.Data
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
public object Item { get; }
Public ReadOnly Property Item As Object
| Type | Description |
|---|---|
| Object |
An object representing a summary item whose value is being calculated.
|
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
{
GridColumnSummaryItem item = e.Item as GridColumnSummaryItem;
GridView view = sender as GridView;
winforms-grid-customize-footer-menu-calculate-custom-totals/VB/Form1.vb#L65
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