ComponentOne True DBGrid Pro 8
Selecting columns

If the AllowColSelect property is True, the user can select an individual column or a range of columns with the mouse. Nonadjacent column selections are not supported.

When the user points to the header of an unselected column, the mouse pointer changes to a down arrow to indicate that the column can be selected.

When the user clicks a column header, that column is selected and highlighted, and any columns or rows that were previously selected are deselected.

There are two ways for the user to select a range of columns:

  1. After selecting the first column in the range by clicking its header, the user can select the last column in the range by holding down the Shift key and clicking another column header. If necessary, the horizontal scroll bar can be used to bring additional columns into view.

    Alternatively, the user can hold and drag the mouse pointer within the column headers to select multiple columns.

The SelStartCol and SelEndCol properties will be adjusted to reflect the columns selected by the user.

You can prevent a column selection from occurring at run time by setting the Cancel argument to True in the grid's SelChange event.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback