BindingNavigator.CountItem Property

 

Gets or sets the ToolStripItem that displays the total number of items in the associated BindingSource.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[TypeConverterAttribute(typeof(ReferenceConverter))]
public ToolStripItem CountItem { get; set; }

Property Value

Type: System.Windows.Forms.ToolStripItem

A ToolStripItem that displays the total number of items in the associated BindingSource.

The CountItem property is null if it was not previously set and it is accessed before the AddStandardItems method is implicitly or explicitly called.

The count of items is accessed through the Count property of the BindingSource.

In the default implementation, this property represents a control of type ToolStripLabel.

.NET Framework
Available since 2.0
Return to top
Show: