Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Objective Grid for Microsoft .NET User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

8.2 1stGrid - Step 1

This section lists the steps required to create the first iteration of the 1stGrid application. The first iteration of the application is a very simple Windows Forms application with a single form containing one Objective Grid for Microsoft .NET grid control. The first two cells in column one of the grid are initialized with the text "Hello" and "World", respectively.

8.2.1 Create a New Solution and Project

  1. Open Microsoft Visual Studio.

  2. Create a new, blank solution using the menu option File | New | Blank Solution.

    Figure 31: New Project Dialog

  3. Add a new project to the solution.

  4. Select Form1. If the properties for Form1 are not already displayed, then right click the form to display a context menu. Select Properties from the context menu.

  5. In the property grid for the form, change the following property:

8.2.2 Add a GridControl

  1. You are now ready to add a Grid Control to Form1. Access the Windows Forms Toolbox, by selecting the View | Toolbox menu option.

  2. Select and drag a GridControl from the Toolbox onto the form.

  3. Size and position the grid as desired.

  4. Select the Grid Control. In the property grid for the control, set the properties shown in Table 31

    Table 31: GridControl Properties

    Property Value
    DrawGrid false
    BorderStyle Sunken
    Anchor Top, Bottom, Left, Right
    AutoScroll true
    ColCount 15
    RowCount 40


    DrawGrid is a property of the form; it is not a Rogue Wave property.

    Figure 34: 1stGrid Step 1 Form

  5. Select the Grid Control in the form.

  6. Click the events button in the properties grid (the lightning bolt).

  7. Double click the GridInitialized event (in Grid Control Events). Add the following code to handle the event.

  8. Build and run the application.

    Figure 35: Completed 1stGrid Step 1



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.