FlexGrid for WinRT
Step 1 of 3: Adding C1FlexGrid to the Application
  1. In this step you'll begin in Visual Studio to create a WinRT-style application using FlexGrid for WinRT . To set up your project and add a C1FlexGrid control to your application, complete the following steps:
  2. In Visual Studio 2012 Select File | New | Project.
  3. In the New Project dialog box, expand a language in the left pane, under the language select Windows Store, and in the templates list select Blank App (XAML). Enter a Name and click OK to create your project.
  4. 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.

  1. 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="White"/>

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 WinRT-style application. In the next step you'll add code to the application to add data to be displayed in the grid.

 

 


Copyright © GrapeCity, inc. All rights reserved.

Product Support Forum  |   Documentation Feedback