ComponentOne FlexGrid for WinForms
Step 1 of 4: Create the C1FlexGrid Control for the Data Analysis Tutorial
FlexGrid for WinForms Tutorials > Data Analysis Tutorial > Step 1 of 4: Create the C1FlexGrid Control for the Data Analysis Tutorial

Start a new project and add a C1FlexGrid control to the form by clicking the C1FlexGrid icon on the toolbox, then clicking on the form and dragging until the object has the proper size.

If you can't find the C1FlexGrid control in the Toolbox, right-click on the Toolbox and select Choose Items. Then, look for the C1FlexGrid control on the list of .NET components and make sure it is checked. If you can't find the grid in the component list, you may need to re-install the product.

  1. In the C1FlexGrid Tasks menu, click Dock in parent container. This sets the grid's Dock property to Fill so the grid will fill the form.
  2. Double-click the form caption area to open the code window. At the top of the file, add the following statements:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    Imports System.Data.OleDb
    Imports System.ComponentModel
    Imports C1.Win.C1FlexGrid
    

    To write code in C#

    C#
    Copy Code
    using System.Data.OleDb;
    using System.ComponentModel;
    using C1.Win.C1FlexGrid;
    

    This makes the objects defined in the C1FlexGrid and OleDb assemblies visible to the project and saves a lot of typing.

See Also