RAD Studio VCL Reference
ContentsIndex
TDBGrid Members Protected Methods
Protected Methods
 
Name 
Description 
 
Called when an application uses a component interface. 
 
Called when an application releases a component interface. 
 
Calls BeginLayout if the table is not currently being reformatted. 
 
Responds when the action associated with the control changes. 
 
Updates the control to reflect changes in its associated action. 
 
Sets control's window style according to its bi-directional support. 
 
Provides the interface that adjusts the ClientRect property for idiosyncrasies of the window. 
 
Sets the size of the control as determined by the AutoSize property. 
 
Adjusts the control's size according to its contents and constraints. 
 
Adds or deletes rows or columns from the grid. 
 
Aligns any controls for which the control is the parent within a specified area of the control. 
 
This is ArrangeControl, a member of class TWinControl. 
 
Copies the properties of an object to a destination object. 
 
Overrides the inherited AssignTo function to enable assignments to TAction objects. 
 
Copies the properties of the windowed control to another object. 
 
Begin Automatic Drag. 
 
Starts the dragging of a column in the grid. 
 
Starts the dragging of a column in the grid. 
 
Increments the LayoutLock property when the column bindings or fields in the dataset change. 
 
Starts the dragging of a row in the grid. 
 
Increments the UpdateLock property when the data in the grid changes. 
 
Returns the screen coordinates of a specified set of cells. 
 
This is CalcCursorPos, a member of class TControl. 
 
Calculates the pixel locations of the grid boundaries. 
 
Calculates the pixel locations of the fixed cells. 
 
Determines the appearance of the mouse cursor during resizing. 
 
Determines the appearance of the mouse cursor during resizing. 
 
This is CalcTitleRect, a member of class TCustomDBGrid. 
 
Indicates whether the control can resize itself automatically to accommodate its contents. 
 
Indicates how the control can be resized. 
 
Decrements the LayoutLock property. 
 
Indicates whether the Key parameter can be entered into the current cell. 
 
Indicates whether the Key parameter can be entered into the current cell. 
 
Indicates whether the current column of the grid can be edited. 
 
Indicates whether the current cell in the grid can be edited. 
 
Indicates whether the inplace edit control can be created to allow editing. 
 
Indicates whether the inplace edit control can be created to allow editing. 
 
Indicates whether the grid should respond to a given key combination. 
 
OnCanResize event dispatcher. 
 
Indicates how the control can respond to a resize attempt. 
 
Generates an OnCellClick event. 
 
Returns the screen coordinates of a cell in the grid. 
 
Sends a CM_CHANGED message to the control. 
 
Prepares the grid's canvas for painting to reflect a right-to-left or left-to-right orientation. 
 
Sets the private, internal storage for the Name property to the string passed in NewName. 
 
Rescaling event dispatcher. 
 
Resize and reposition children and self. 
 
Validates whether the column currently selected for dragging can be dropped at the current location. 
 
CheckColumnDrag validates whether the column currently selected for dragging can be dropped at the current location. 
 
CheckRowDrag validates whether the row currently selected for dragging can be dropped at the current location. 
 
Respond to user click. 
 
Generates an OnColEnter event. 
 
Generates an OnColExit event. 
 
Returns the column object associated with nth parent field of the given column. 
 
Generates an OnColumnMoved event. 
 
Provides the interface for a method that responds when the position of a column changes. 
 
Updates the column widths in the Columns property when the user resizes the columns. 
 
Responds when the column widths change. 
 
Notify control of resize with constraints. 
 
Generates an OnConstrainedResize event. 
 
This is ControlsAligned, a member of class TWinControl. 
 
Creates the TDBGridColumns object that stores the column descriptors for the grid. 
 
Creates the data link that the grid uses to manage the connection to its data source. 
 
Creates the dock manager for the control. 
 
Creates the inplace editor that allows the cells of the grid to be edited. 
 
Creates the inplace editor control. 
 
Creates underlying screen object. 
 
Initializes a window-creation parameter data structure. 
 
Initializes the window-creation parameter record. 
 
Creates a windowed control derived from an existing Windows window class. 
 
Creates a Windows control to represent the control. 
 
Creates the underlying window. 
 
Creates the window used to display the data-aware grid. 
 
Returns placement order of custom-aligned child control. 
 
Returns aligned position of custom-aligned child control. 
 
Converts a column index in the Columns property to the index of the corresponding column in the visual display. 
 
OnDblClick event dispatcher. 
 
Handles the painting and erasing of a dock image. 
 
Decrements the LayoutLock property and posts a message to the grid to trigger a new layout sequence at a more appropriate time. 
 
Builds the Fields array from the Columns property and the data source. 
 
Designates methods for storing an object's unpublished data on a stream such as a form file. 
 
Provides an interface for a method that reads and writes otherwise unpublished data. 
 
Provides methods to read and write the IsControl property to a stream such as a form file. 
 
Provides methods to read and write the IsControl property to a stream such as a form file. 
 
Defines a savable version of the Columns property when necessary. 
 
Adds the ColWidths and RowHeights properties to the values saved with the grid. 
 
Deletes a specified column from the grid. 
 
Deletes a specified from the grid. 
 
This is DesignWndProc, a member of class TControl. 
 
Destroys the control's window without destroying the control. 
 
Destroys the window created in the CreateWindowHandle method. 
 
Destroys the control's window. 
 
Performs actions when a control is docked to the windowed control. 
 
Responds when a docking client is dragged over the windowed control. 
 
This is DockReplaceDockClient, a member of class TWinControl. 
 
Handles dragging of the control over an invalid docking target. 
 
OnContextPopup event dispatcher. 
 
Docking event dispatcher. 
 
Generates an OnDockOver event. 
 
OnEndDock event dispatcher. 
 
OnEndDrag event dispatcher. 
 
Respond to receiving input focus. 
 
Respond to losing input focus 
 
Hides the inplace editor when selection moves to another control in a form. 
 
Flips the control's children. 
 
Performs some preprocessing before generating an OnKeyDown event. 
 
Performs some preprocessing before generating an OnKeyPress event. 
 
Performs some preprocessing before generating an OnKeyUp event. 
 
Processes mouse wheel motion. 
 
OnMouseWheelDown event dispatcher. 
 
Performs tasks when the mouse wheel is rotated downward. 
 
Performs tasks when the mouse wheel is rotated downward. 
 
OnMouseWheelUp event dispatcher. 
 
Performs tasks when the mouse wheel is rotated upward. 
 
Performs tasks when the mouse wheel is rotated upward. 
 
Responds when a control is undocked from the windowed control. 
 
OnStartDock event dispatcher. 
 
OnStartDrag event dispatcher. 
 
Undocks a control that is currently docked to the windowed control. 
 
Provides the interface for a method that responds to the cancellation of a drag. 
 
OnDragOver event dispatcher. 
 
Draws the cell specified by the ACol and ARow parameters. 
 
Provides the prototype for a method that draws the contents of a cell in the grid. 
 
Generates an OnDrawColumnCell event. 
 
Generates an OnDrawDataCell event. 
 
Draws the dock image for the control. 
 
Generates an OnEditButtonClick event. 
 
Ends the dragging of a column in the grid. 
 
Ends the dragging of a column in the grid. 
 
Decrements the LayoutLock property and recomputes the Columns property if LayoutLock reaches 0. 
 
Ends the dragging of a row in the grid. 
 
Decrements the UpdateLock property. 
 
Erases the dock image for the control. 
 
Returns the control's next child in the tab order after the specified control. 
 
Sorts the child controls by their tab order. 
 
Changes the current cell to a specified cell. 
 
This is GetAction, a member of class TControl. 
 
Returns the appropriate action link class that is associated with the control class. 
 
Returns the associated action link class. 
 
Returns the owner of a child component being read from a stream. 
 
Returns the parent, or if there is no parent, returns the owner of a child component being read from a stream. 
 
This is GetChildren, a member of class TComponent. 
 
Calls a specified method for each child of the control. 
 
Returns the screen coordinates of the top-left corner of the control's client area. 
 
Returns the value of the ClientOrigin property. 
 
Returns a rectangle defining the client area of the control. 
 
Returns the value of the ClientRect property. 
 
Returns the field component that represents the binding of a specified column. 
 
Returns the smallest rectangle in which all the control's children fit. 
 
Returns a device context for the control. 
 
Provides access to a device context for the control. 
 
Returns the edge on which another control should be docked when it is dragged over the control. 
 
Returns the control's image list containing the image to be displayed while dragging. 
 
Limits the number of characters that can be typed into cells representing string fields. 
 
Provides the interface for a method that limits the number of characters the user can type into cells. 
 
Returns the input mask associated with the field for the selected cell. 
 
Provides the interface for a method that returns an input mask for the specified cell. 
 
Indicates whether a specified cell has an ellipsis button or drop-down arrow. 
 
Indicates whether a specified cell has an ellipsis button or drop-down arrow. 
 
Returns the value of the indicated cell formatted for editing. 
 
Returns the value of the indicated cell formatted for editing. 
 
Returns the value of the Enabled property. 
 
Returns the value of the indicated cell formatted for display. 
 
Returns the value of the Floating property. 
 
Returns the class used for the control when it is floating. 
 
Returns the value of the GridHeight property. 
 
Returns the value of the GridWidth property. 
 
Maps a single member and an optional set of argument names to a corresponding set of integer dispatch identifiers (dispIDs). 
 
Returns the owner of a component. 
 
Returns the owner of an object. 
 
Returns the handle to a palette for use by the control. 
 
Returns the window handle for the window of the control's parent. 
 
Returns the pop-up menu associated with the control. 
 
Generates an OnGetSiteInfo event 
 
Returns the window handle of the first window not associated with a VCL control that contains the windowed control. 
 
Retrieves the type information for an object. 
 
Returns the number of type information interfaces that an object provides (either 0 or 1). 
 
Hides the inplace editor. 
 
Hides the inplace editor when it is not in use. 
 
Indicates whether a specified cell should be highlighted when it is drawn. 
 
Invalidates the region occupied by a cell so that it will be repainted with the next Windows paint message. 
 
Invalidates the region occupied by a column so that it will be repainted with the next Windows paint message. 
 
This is InvalidateDockHostSite, a member of class TWinControl. 
 
Causes the inplace editor to repaint itself, moving to a new location if necessary. 
 
Tells Windows to repaint the grid after other important Windows messages are handled. 
 
Invalidates the region occupied by a row so that it will be repainted with the next Windows paint message. 
 
Invalidates the column titles so that they will be repainted. 
 
Provides access to Automation properties and methods when the component wraps an Automation object. 
 
This is IsControlActivateMsg, a member of class TWinControl. 
 
Indicates whether a specified mouse message is directed to one of the windowed control's child controls. 
 
This is IsQualifyingSite, a member of class TWinControl. 
 
Respond to key press events. 
 
Provides special processing when the user presses down on a key. 
 
Provides special processing when the user presses a key. 
 
Respond to keyboard input. 
 
Responds when the user presses a key. 
 
Provides special processing when the user presses a key. 
 
Respond to released key. 
 
Recomputes the Columns property. 
 
Recomputes the Columns property and the vertical scroll bar of the grid. 
 
Initializes the component after the form file has been read into memory. 
 
Initializes the control after it is loaded from a stream. 
 
Sets up the Columns property once the data grid and all its child components are loaded. 
 
Receives Windows messages for the control. 
 
This is MouseActivate, a member of class TControl. 
 
OnMouseDown event dispatcher. 
 
Provides special processing when the user clicks on the mouse. 
 
Provides special processing when the user presses a mouse button. 
 
Respond to mouse moving over control area.. 
 
Provides special processing when the user moves the mouse. 
 
OnMouseUp event dispatcher. 
 
Provides special processing when the user releases the mouse button. 
 
Provides special processing when the user releases the mouse button. 
 
Selects the cell indicated by the ACol and ARow parameters. 
 
Moves a column to a new position. 
 
Moves a row to a new position. 
 
Forwards notification messages to all owned components. 
 
Responds to notifications that components are being created or destroyed. 
 
Responds to notifications that components are being created or destroyed. 
 
Responds to notifications that components are about to be destroyed. 
 
Sends a message to all the child controls. 
 
Renders the image of a custom control. 
 
Draws the image of the grid control on the screen. 
 
Paints each of the child controls in a windowed control using the specified device context. 
 
Responds to WM_PAINT messages. 
 
Renders the image of the control on a specified device context. 
 
Renders the image of a windowed control. 
 
Responds to changes in the system's palette by realizing the control's palette. 
 
Responds to changes in the system's palette by realizing the control's palette and the palette for each child control. 
 
Responds when the component is created from the component palette. 
 
Positions the docking rectangle according to the current drag-and-dock state. 
 
Returns a reference to a specified interface if the object supports that interface. 
 
Converts the index of a column in the visual display to the corresponding index in the Columns property. 
 
This is ReadState, a member of class TComponent. 
 
Prepares the control for having its properties assigned values read from a stream. 
 
Prepares the control for having its properties assigned values from a stream. 
 
Recreate underlying Windows screen object. 
 
Reloads a docked control. 
 
This is RemoveWindowProps, a member of class TWinControl. 
 
Instructs the parent of a control to reposition the control, enforcing its Align property. 
 
Restores the input method editor (IME) that was active when the application started. 
 
Directs the composition window of the input method editor (IME) to perform a specific action. 
 
Respond to control resize. 
 
Responds when the row heights change. 
 
Provides the interface for a method that responds when the position of a row changes. 
 
This is ScaleConstraints, a member of class TControl. 
 
Rescale child controls only. 
 
Updates the image of the grid to reflect a new record position. 
 
Scrolls the visual image of the cells in the grid. 
 
Determines whether a particular cell in the grid can be selected. 
 
Locates first selectable child control. 
 
Moves the input focus from the current child control to the next one in the tab order. 
 
Cancels the modal state of the control. 
 
Sends a Windows message to the control's host dock site. 
 
This is SetAncestor, a member of class TComponent. 
 
This is SetAutoSize, a member of class TControl. 
 
Sets the control's bi-directional mode. 
 
This is SetChildOrder, a member of class TComponent. 
 
Changes the order in which the child component appears in the list of child components returned by the GetChildren method. 
 
This is SetColumnAttributes, a member of class TCustomDBGrid. 
 
Ensures that components inserted at design time have their design-mode flag set. 
 
Ensures that components inserted at design time have their design-mode flag set. 
 
Sets the drag mode for the control. 
 
Updates the edited version of the current cell's data. 
 
Provides the interface for a method that updates the text associated with a cell. 
 
Sets the value of the Enabled property. 
 
Activates an input method editor (IME) using the values specified by the ImeMode and ImeName properties. 
 
Sets the position and font of the composition window. 
 
Sets the csInline bit of the component's ComponentState property 
 
Sets the value of the Name property. 
 
Sets the name of the control. 
 
Sets the parent of the control. 
 
Sets the parent of the control. 
 
This is SetParentBackground, a member of class TWinControl. 
 
Specifies whether the control uses its parent's BiDiMode
 
This is SetParentComponent, a member of class TComponent. 
 
Sets the parent for the control. 
 
Repositions the control in its parent's control list, thereby changing position onscreen. 
 
Moves the control to the top or bottom of the parent control's (or screen's) list of TWinControl controls. 
 
Ensures that a specified child control is visible. 
 
Displays the inplace editor when the grid enters edit mode. 
 
Displays the inplace editor, with its text set to the specified character. 
 
Responds to changes in the size of the grid. 
 
Indicates whether the indicated coordinates are on one of the resize hot zones of the graph. 
 
Indicates whether the columns of the grid are stored when the grid is saved, or whether they are generated dynamically. 
 
Moves the current record in response to the user dragging the mouse outside of the data cells. 
 
Extends a move, resize, or selection out of the scrollable region when the user drags the mouse in a direction where the grid is scrolled. 
 
Generates an OnTitleClick event. 
 
Updates the position of the inplace editor when the grid scrolls. 
 
Updates the position of the inplace editor when the grid scrolls. 
 
This is UpdateBounds, a member of class TWinControl. 
 
Changes the Top, Left, Width, and Height properties of the control, but doesn't update its screen image and bypasses all resize events. 
 
This is UpdateControlOriginalParentSize, a member of class TWinControl. 
 
Clears the csUpdating state in the component's ComponentState property when the component finishes updating. 
 
Notifies the designer when rows and columns of the grid are moved or resized. 
 
This is UpdateExplicitBounds, a member of class TControl. 
 
This is UpdateRecreatingFlag, a member of class TWinControl. 
 
Provides the interface for a method that adds type library and version information to the Registry on components that implement COM interfaces. 
 
This is UpdateScrollBar, a member of class TCustomDBGrid. 
 
Updates form User Interface State as needed 
 
Sets the csUpdating state in the component's ComponentState property. 
 
Indicates whether the alignment of a specified field should be changed from left-aligned to right-aligned. 
 
Determines whether an object can be inserted into a container. 
 
Provides the interface for a method that validates an child component before it is inserted. 
 
Ensures that renaming an owned component does not create name conflict. 
 
Provides the interface for a method that responds to changes in the control's visibility. 
 
Provides specific message responses for the control. 
 
Provides specific message responses for the control. 
 
This is WriteState, a member of class TComponent. 
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.