Adding a Grid component

  1. Open the form you want to add a grid to, and go into Design Mode.
  2. In the Toolbox, select Grid.
  3. Place and size the grid component where you want it on the form.
  4. In the Binding property field of the Component properties sheet, specify the collection to bind to the grid:
    • Click the ellipsis (...) button associated with the Binding field.
    • Use the Edit Component Data Binding dialog box to specify the collection to which the grid is to be bound.
  5. Use the Component properties sheet to specify other properties as desired.
    注意: When the Grid component is first created, WinStudio automatically creates two generically named grid columns.
  6. Add and configure grid columns as needed to display all the data you want to display in the grid.
相关主题