GridView Data Binding to BindingList
The BindingList is a generic list type. The Kettic DataGridView component is capable of binding to Generic Lists. The BindingList provides additional binding support to Generic List. When we are going to bind the GridView component to a generic list, the BindingList will offers additional control over list items to edit, remove or add. The BindingList also surfaces C# events notifying users of GridView as any changes happened to the Bindinglist.
How to Bind GridView to BindingList
In the example showing as following, we are going to create a MyObject list, initializing the BindingList and assigning the BindingList to the DataSource property of the GridView control. We are going to use the ListChangedEventHandler in the example below to report the type changes occurring, the item new index and content.
C# code for creating C# class for binding GridView .NET component to BindingList
C# code for binding GridView .NET component to BindingList to BindingList
UI Controlsfor Windows Forms.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls