ComponentOne True DBGrid for WinForms
Design-Time Support / C1TrueDBGrid Context Menu
In This Topic
    C1TrueDBGrid Context Menu
    In This Topic

    Right-click anywhere on the grid to display the True DBGrid for WinForms context menu, which is a context menu that Visual Basic provides for all .NET controls. Although the C1TrueDBGrid's context menu has a few extra features.


    The context menu commands operate as follows:

    About ComponentOne C1TrueDBGrid

    This command displays the grid's About dialog box, which is helpful in finding the build number of the grid.

    Add Absent Fields

    This option adds fields from the data source that are not currently in the Columns collection.

    Retrieve Fields/Clear Fields

    These commands initiate the RetrieveFields and ClearFields methods of the grid. RetrieveFields goes back to the data source and retrieves all of the formatting information and base data for the column. ClearFields clears out any existing column formatting.

    Design

    This command brings up the C1TrueDBGrid Designer. This designer will enable the developer to add or delete columns, set DataColumn, DisplayColumn, and Split properties, and configure column order and many other aspects of the grid's design. For more information see Using the C1TrueDBGrid Designer.

    Save Layout/Load Layout

    These commands save the current layout of the grid (style properties, column widths, and so on) to an XML file, or retrieve the XML file, loading a new grid setup.

    Cut, Copy, Paste, Delete

    These commands are identical to those on the Visual Studio Editmenu. Cut (CTRL+X) moves the grid from the Visual Basic form to the Clipboard. Copy (CTRL+C) moves a copy of the grid to the Clipboard while leaving the grid on the form intact. Paste (CTRL+V) copies the grid from the Clipboard to the form. Delete (the DEL key) removes the grid but does not move it to the Clipboard. You can undo the Delete command by selecting Undo (CTRL+Z) from the Visual Basic Edit menu.

    Bring To Front, Send To Back

    These commands control the z-order of the grid relative to the other objects on the Visual Basic form. Bring To Front places the grid in front of other objects; Send To Back places it behind other objects.

    View Code

    This command displays the grid's code window, which enables the viewing and editing of the grid's event handling code.

    Align to Grid

    This command automatically aligns the outer edges of the grid control to the design-time grid lines on the form.

    See Also