It has different methods like AddNew , MoveFirst , MovePrevious , MoveNext , etc which provide easier way for adding new row, moving to first record, moving to previous record, moving to next record and many other operations without writing code for them. In this article I will use it in a Windows Forms application. Now follow the given steps. Step 1: Step 2: It will be visible at the bottom of the form.
Using the BindingSource Class in ADO.NET
BindingSource Component Overview | Microsoft Docs
Subscribe to RSS
The following code example demonstrates a ListBox bound to a BindingSource. The BindingSource component serves many purposes. First, it simplifies binding controls on a form to data by providing currency management, change notification, and other services between Windows Forms controls and data sources. This is accomplished by attaching the BindingSource component to your data source using the DataSource property. For complex binding scenarios you can optionally set the DataMember property to a specific column or list in the data source.
The BindingSource component is designed to simplify the process of binding controls to an underlying data source. The BindingSource component acts as both a conduit and a data source for other controls to bind to. It provides an abstraction of your form's data connection while passing through commands to the underlying list of data. Additionally, you can add data directly to it, so that the component itself functions as a data source. The BindingSource component acts as the data source for some or all of the controls on the form.