ComponentOne FlexGrid for UWP
Step 1 of 3: Adding C1FlexGrid to the Application
FlexGrid for UWP Quick Start > Step 1 of 3: Adding C1FlexGrid to the Application

In this step you'll begin in Visual Studio to create a UWP-style application using FlexGrid for UWP . To set up your project and add a C1FlexGrid control to your application, complete the following steps:

  1. In Visual Studio, Select File | New | Project.
  2. Select Templates | Visual C# | Windows | Universal. From the templates list, select Blank App (Universal Windows). Enter a Name and click OK to create your project.
  3. Open MainPage.xaml if it isn't already open, place the cursor between the <Grid> and </Grid> tags, and click once.
    Navigate to the Toolbox and double-check the C1FlexGrid icon to add the control to your application.
  4. Edit the C1FlexGrid's markup so it appears similar to the following:
    Markup
    Copy Code
    <FlexGrid:C1FlexGrid x:Name="flexgrid1" AllowResizing="Both" AllowDragging="Both" AllowDrop="True" ColumnHeaderForeground="Black"/>
    


    This markup sets the control's name, makes the rows and columns resizable, sets the ability to drag and drop rows and columns and sets the color of the header text.

What You've Accomplished

In this topic you successfully created a UWP-style application. In the next step you'll add code to the application to add data to be displayed in the grid.