InputPanel for WinForms Quick Start > Step 1 of 6: Create a Data Source for C1InputPanel |
In this step you will create a data source that you can later bind the InputPanel's elements using the C1InputPanel Item Collection Editor designer. Create a .NET project and complete the following steps:
Add a new data source
A DataSet and connection string are added to your project.
Expand the Data group in the Visual Studio Toolbox and double-click on the BindingSource to add it to your component tray.
An employeesTableAdapter is added to the component tray as well as the following code to the Form_Load event:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.EmployeesTableAdapter.Fill(Me.C1NWindDataSet.Employees) |
To write code in C#
C# |
Copy Code
|
---|---|
this.EmployeesTableAdapter.Fill(this.C1NWindDataSet.Employees); |