Share via


Manually Adjusting Grid Display at Design Time

When you have added columns to the grid, you can change the width of the columns and the height of the rows. You can manually set the height and width properties of the column and row objects in the Properties window or visually set these properties in grid design mode.

To switch to grid design mode

  • Choose Edit from the grid's shortcut menu.

    -or-

  • In the Object box of the Properties window, select a column of the grid.

When you are in grid design mode, a thick border is displayed around the grid. To switch out of grid design mode, select the form or another control.

To adjust the width of the columns in a grid

  1. In grid design mode, position the mouse pointer between grid column headers so that the pointer changes to a bar with arrows pointing left and right.

  2. Select the column and drag until the column is the desired width

    -or-

    Set the column's Width property in the Properties window.

To adjust the height of the rows in a grid

  1. In grid design mode, position the mouse pointer between the first and second buttons on the left side of the Grid control so that the pointer changes to a bar with arrows pointing up and down.

  2. Select the row and drag until the row is the desired height.

    -or-

  • Set the column's Height property in the Properties window.

    Tip   You can prevent a user from changing the height of the grid rows at run time by setting AllowRowSizing to false (.F.).

See Also

Manipulating Multiple Rows of Data | Setting the Source of the Data Displayed in the Grid | Using Controls | Setting Up a One-to-Many Form Using the Grid Control | Controls and Objects