BindingSource::Count Property
.NET Framework (current version)
Gets the total number of items in the underlying list, taking the current Filter value into consideration.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Implements
ICollection::CountThe following code example demonstrates the List, RemoveAt, and Count members. To run this example, paste the code into a form that contains a BindingSource named BindingSource1, two labels named label1 and label2, and a button named button1. Associate the button1_Click method with the Click event for button1. Visual Basic users will need to add a reference to System.Data.dll.
.NET Framework
Available since 2.0
Available since 2.0
Show: