[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Performs a delete operation for a column or a row.
Source position: grids.pas line 1044
protected procedure TCustomGrid.DoOPDeleteColRow( |
IsColumn: Boolean; |
index: Integer |
); |
IsColumn |
|
True if Index refers to a column instead of a row. |
index |
|
Position for the column or row deleted in the method. |
DoOPDeleteColRow is a method which performs actions needed to delete the specified column or row from the grid control.
IsColumn indicates whether a column or row is affected in the method. When set to True, the specified column number is deleted from the control. Otherwise, the specified row number is removed.
Use Index to specify the position for the column or row removed in the method.
Prior to removing the specified column or row, private methods are called to validate values used by or affected in the operation like:
DoOPDeleteColRow ensures that a visible cell editor in the column or row is deactivated by setting EditorMode to False.
The ColRowDeleted method is called when the affected data has been removed from the grid control and the cached values in GCache. In a descendent class (TCustomDrawGrid), the OnColRowDeleted event handler is signalled (when assigned).
Col and Row are updated if the operation causes the selection range to be changed, and SelectCell is called to include the cell in Selection. Sizes for auto-filled columns are recalculated when needed. The cell Editor is updated when needed for the new selection and position on the grid control.
|
Performs actions when a column or a row is deleted from the control. |
|
|
Column index for the selected grid cell. |
|
|
Number of columns in the grid. |
|
|
Row number for the selected grid cell. |
|
|
Number of rows in the grid. |
|
|
The number of fixed columns in the grid. |
|
|
Number of the fixed rows in the grid. |
|
|
Determines whether the specified cell can be selected in the grid control. |
|
|
Rectangle with the current cell selections in the grid control. |
|
|
True when the Editor is ready to modify the value for the current cell. |
Version 4.0 | Generated 2025-05-03 | Home |