| List for WinForms Quick Start > Step 2 of 3: Binding the List for WinForms Application to a DataSet |
In the last step you added the C1List control to your project and created a simple list application. In this step you'll bind the C1List control to a DataSet. Complete the following steps:


To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
Me.ComposerTableAdapter.Fill(Me.C1ListDemoDataSet.Composer) |
|
To write code in C#
| C# |
Copy Code
|
|---|---|
this.ComposerTableAdapter.Fill(this.C1ListDemoDataSet.Composer); |
|
Notice that the data from the Composers table is reflected in the list:

List for WinForms retrieves the database schema information from the DataSet and automatically configures itself to display all of the fields contained in the database table. Note that the field names are used as the default column headings.
You have successfully completed binding List for WinForms to a DataSet. In the next step you will customize the C1List control's appearance settings.