True DBGrid for WinForms | ComponentOne
Design Time / Context Menu
In This Topic
    Context Menu
    In This Topic

    Right-click anywhere on the grid control, and you can view the True DBGrid for WinForms context menu, which provides the basic commands.

    The context menu commands are as follows:

    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 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.

    About C1TrueDBGrid

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

    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.

    Note: WinForms .NET6 Edition does not include rich design-time support yet. We will enhance it in future releases.