TCnDataGridView Class

Displays data in a customizable grid.

Namespace: CNClrLib.Control.DataGridView
TCustomControl
  CNClrLib.Control.Base.TClrCustomControl
    CNClrLib.Control.DataGridView.TCnDataGridView
type
 TCnDataGridView = class(TClrCustomControl)
 end;

The TCnDataGridView type exposes the following members.

Show:
 NameDescription
Create(TComponent)

Creates and initializes a TCnDataGridView instance.
 (Overrides TClrCustomControl.Create(TComponent).)

Destroy

Frees the resources allocated with a TCnDataGridView instance. (Overrides TClrCustomControl.Destroy.)

Top
Show:
 NameDescription
AccessibleDescription

Gets or sets the description of the control used by accessibility client applications. (Inherited from TClrCustomControl.)

AccessibleName

Gets or sets the name of the control used by accessibility client applications. (Inherited from TClrCustomControl.)

AccessibleRole

Gets or sets the accessible role of the control (Inherited from TClrCustomControl.)

AdjustedTopLeftHeaderBorderStyle

Gets the border style for the upper-left cell in the TCnDataGridView.

AdvancedCellBorderStyle

Gets the border style of the cells in the TCnDataGridView.

AdvancedColumnHeadersBorderStyle

Gets the border style of the column header cells in the TCnDataGridView.

AdvancedRowHeadersBorderStyle

Gets the border style of the row header cells in the TCnDataGridView.

Align

Determines how the control aligns within its container (parent control). (Inherited from TClrCustomControl.)

AllowUserToAddRows

Gets or sets a value indicating whether the option to add rows is displayed to the user.

AllowUserToDeleteRows

Gets or sets a value indicating whether the user is allowed to delete rows from the TCnDataGridView .

AllowUserToOrderColumns

Gets or sets a value indicating whether manual column repositioning is enabled.

AllowUserToResizeColumns

Gets or sets a value indicating whether users can resize columns.

AllowUserToResizeRows

Gets or sets a value indicating whether users can resize rows.

AlternatingRowsDefaultCellStyle

Gets or sets the default cell style applied to odd-numbered rows of the TCnDataGridView.

Anchors

Specifies how the control is anchored to its parent. (Inherited from TClrCustomControl.)

AutoGenerateColumns

Gets or sets a value indicating whether columns are created automatically when the DataSource (or BindingSource) or DataMember properties are set.

AutoScrollOffset

Gets or sets where this control is scrolled to in ScrollControlIntoView(Control). (Inherited from TClrCustomControl.)

AutoSize

Specifies whether the control sizes itself automatically to accommodate its contents. (Inherited from TClrCustomControl.)

AutoSizeColumnsMode

Gets or sets a value indicating how column widths are determined.

AutoSizeRowsMode

Gets or sets a value indicating how row heights are determined.

BackColor

Gets or sets the background color for the control. (Inherited from TClrCustomControl.)

BackgroundColor

Gets or sets the background color of the TCnDataGridView.

BackgroundImage

Gets or sets the background image displayed in the control. (Inherited from TClrCustomControl.)

BackgroundImageLayout

Gets or sets the background image layout as defined in the ImageLayout enumeration. (Inherited from TClrCustomControl.)

BindingContext

Gets or sets the BindingContext for the control. (Inherited from TClrCustomControl.)

BindingSource

Gets or sets the DataSource property that the TCnDataGridView is displaying data for.

BorderStyle

Represents property BorderStyle.

Bottom

Gets the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area. (Inherited from TClrCustomControl.)

Bounds

Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control. (Inherited from TClrCustomControl.)

CanSelect

Gets a value indicating whether the control can be selected. (Inherited from TClrCustomControl.)

Capture

Gets or sets a value indicating whether the control has captured the mouse. (Inherited from TClrCustomControl.)

CausesValidation

Represents property CausesValidation.

CellBorderStyle

Gets the cell border style for the TCnDataGridView.

ClipboardCopyMode

Gets or sets a value that indicates whether users can copy cell text values to the Clipboard and whether row and column header text is included.

CnDock

Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent. (Inherited from TClrCustomControl.)

ColumnCount

Gets or sets the number of columns displayed in the TCnDataGridView.

ColumnHeadersBorderStyle

Gets the border style applied to the column headers.

ColumnHeadersDefaultCellStyle

Gets or sets the default column header style.

ColumnHeadersHeight

Gets or sets the height, in pixels, of the column headers row.

ColumnHeadersHeightSizeMode

Gets or sets a value indicating whether the height of the column headers is adjustable and whether it can be adjusted by the user or is automatically adjusted to fit the contents of the headers.

ColumnHeadersVisible

Gets or sets a value indicating whether the column header row is displayed.

Columns

Gets a collection that contains all the columns in the control.

CompanyName

Gets the name of the company or creator of the application containing the control. (Inherited from TClrCustomControl.)

Constraints

Specifies the size constraints for the control. (Inherited from TClrCustomControl.)

ContainsFocus

Gets a value indicating whether the control, or one of its child controls, currently has the input focus. (Inherited from TClrCustomControl.)

ControlIntf

Get .Net Control object as interface. (Inherited from TClrCustomControl.)

Controls

Gets the collection of controls contained within the control. (Inherited from TClrCustomControl.)

Created

Gets a value indicating whether the control has been created. (Inherited from TClrCustomControl.)

CurrentCell

Gets or sets the currently active cell.

CurrentCellAddress

Gets the row and column indexes of the currently active cell.

CurrentRow

Gets the row containing the current cell.

DataBindings

Gets the data bindings for the control. (Inherited from TClrCustomControl.)

DataGridView

Gets the .Net DataGridView object as interface.

DataMember

Gets or sets the name of the list or table in the data source for which the TCnDataGridView is displaying data.

DataSource

Gets or sets the data source that the TCnDataGridView is displaying data for.

DefaultBackColor

Gets the default background color of the control. (Inherited from TClrCustomControl.)

DefaultCellStyle

Gets or sets the default cell style to be applied to the cells in the TCnDataGridView if no other cell style properties are set.

DefaultClrObject

Gets the common language runtime object from this control. (Inherited from TClrCustomControl.)

DefaultFont

Gets the default font of the control. (Inherited from TClrCustomControl.)

DefaultForeColor

Gets the default foreground color of the control. (Inherited from TClrCustomControl.)

DotNetHandle

Gets the window handle that the .Net control is bound to. (Inherited from TClrCustomControl.)

DragCursor

Specifies the image used to represent the mouse pointer when the control is being dragged. (Inherited from TClrCustomControl.)

DragMode

Specifies how the control initiates drag-and-drop or drag-and-dock operations. (Inherited from TClrCustomControl.)

EditingControl

Gets the control hosted by the current cell, if a cell with an editing control is in edit mode.

EditingPanel

Gets the panel that contains the EditingControl.

EditMode

Gets or sets a value indicating how to begin editing a cell.

Enabled

Gets or sets a value indicating whether the control can respond to user interaction. (Inherited from TClrCustomControl.)

EnableHeadersVisualStyles

Gets or sets a value indicating whether row and column headers use the visual styles of the user's current theme if visual styles are enabled for the application.

FirstDisplayedCell

Gets or sets the first cell currently displayed in the TCnDataGridView; typically, this cell is in the upper left corner.

FirstDisplayedScrollingColumnHiddenWidth

Gets the width of the portion of the column that is currently scrolled out of view.

FirstDisplayedScrollingColumnIndex

Gets or sets the index of the column that is the first column displayed on the TCnDataGridView.

FirstDisplayedScrollingRowIndex

Gets or sets the index of the row that is the first row displayed on the TCnDataGridView.

Font

Gets or sets the font of the text displayed by the control. (Inherited from TClrCustomControl.)

ForeColor

Gets or sets the foreground color of the control. (Inherited from TClrCustomControl.)

GridColor

Gets or sets the color of the grid lines separating the cells of the TCnDataGridView.

HasChildren

Gets a value indicating whether the control contains one or more child controls. (Inherited from TClrCustomControl.)

HorizontalScrollingOffset

Gets or sets the number of pixels by which the control is scrolled horizontally.

IsAccessible

Gets or sets a value indicating whether the control is visible to accessibility applications. (Inherited from TClrCustomControl.)

IsCurrentCellDirty

Gets a value indicating whether the current cell has uncommitted changes.

IsCurrentCellInEditMode

Gets a value indicating whether the currently active cell is being edited.

IsCurrentRowDirty

Gets a value indicating whether the current row has uncommitted changes.

IsHandleCreated

Gets a value indicating whether the control has a handle associated with it. (Inherited from TClrCustomControl.)

IsMirrored

Gets a value indicating whether the control is mirrored. (Inherited from TClrCustomControl.)

Item[Integer,Integer]

Provides an indexer to get or set the cell located at the intersection of the column and row with the specified indexes.

Location

Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container. (Inherited from TClrCustomControl.)

MaximumSize

Gets or sets the size that is the upper limit that GetPreferredSize(Size) of the .Net control can specify. (Inherited from TClrCustomControl.)

MinimumSize

Gets or sets the size that is the lower limit that GetPreferredSize(Size) of the .Net control can specify. (Inherited from TClrCustomControl.)

ModifierKeys

Gets a value indicating which of the modifier keys (SHIFT, CTRL, and ALT) is in a pressed state. (Inherited from TClrCustomControl.)

MouseButtons

Gets a value indicating which of the mouse buttons is in a pressed state. (Inherited from TClrCustomControl.)

MousePosition

Gets the position of the mouse cursor in screen coordinates. (Inherited from TClrCustomControl.)

MultiSelect

Gets or sets a value indicating whether the user is allowed to select more than one cell, row, or column of the TCnDataGridView at a time.

NewRowIndex

Gets the index of the row for new records.

OnBindingContextChanged

Represents property OnBindingContextChanged.

OnClick

Represents property OnClick.

OnCursorChanged

Represents property OnCursorChanged.

OnDoubleClick

Represents property OnDoubleClick.

OnDragDrop

Occurs when a drag-and-drop operation is completed. (Inherited from TClrCustomControl.)

OnDragOver

Occurs when an object is dragged over the control's bounds. (Inherited from TClrCustomControl.)

OnEndDrag

Occurs when the dragging of an object ends, either by dropping the object or by canceling the dragging. (Inherited from TClrCustomControl.)

OnEnter

Represents property OnEnter.

OnKeyDown

Represents property OnKeyDown.

OnKeyPress

Represents property OnKeyPress.

OnKeyUp

Represents property OnKeyUp.

OnLeave

Represents property OnLeave.

OnMouseCaptureChanged

Represents property OnMouseCaptureChanged.

OnMouseClick

Represents property OnMouseClick.

OnMouseDown

Represents property OnMouseDown.

OnMouseEnter

Represents property OnMouseEnter.

OnMouseHover

Represents property OnMouseHover.

OnMouseLeave

Represents property OnMouseLeave.

OnMouseMove

Represents property OnMouseMove.

OnMouseUp

Represents property OnMouseUp.

OnPaint

Represents property OnPaint.

OnPreviewKeyDown

Represents property OnPreviewKeyDown.

OnPropertyChange

Occurs when the published property of the control changes. (Inherited from TClrCustomControl.)

PopupMenu

Specifies the pop-up menu associated with the control. (Inherited from TClrCustomControl.)

ProductName

Gets the product name of the assembly containing the control. (Inherited from TClrCustomControl.)

ProductVersion

Gets the version of the assembly containing the control. (Inherited from TClrCustomControl.)

ReadOnly

Gets or sets a value indicating whether the user can edit the cells of the TCnDataGridView control.

Right

Gets the distance, in pixels, between the right edge of the control and the left edge of its container's client area. (Inherited from TClrCustomControl.)

RowCount

Gets or sets the number of rows displayed in the DataGridView.

RowHeadersBorderStyle

Gets or sets the border style of the row header cells.

RowHeadersDefaultCellStyle

Gets or sets the default style applied to the row header cells.

RowHeadersVisible

Gets or sets a value indicating whether the column that contains row headers is displayed.

RowHeadersWidth

Gets or sets the width, in pixels, of the column that contains the row headers.

RowHeadersWidthSizeMode

Gets or sets a value indicating whether the width of the row headers is adjustable and whether it can be adjusted by the user or is automatically adjusted to fit the contents of the headers.

Rows

Gets a collection that contains all the rows in the TCnDataGridView control.

RowsDefaultCellStyle

Gets or sets the default style applied to the row cells of the TCnDataGridView.

RowTemplate

Gets or sets the row that represents the template for all the rows in the control.

ScrollBars

Gets or sets the type of scroll bars to display for the TCnDataGridView control.

SelectedCells

Gets the collection of cells selected by the user.

SelectedColumns

Gets the collection of columns selected by the user.

SelectedRows

Gets the collection of rows selected by the user.

SelectionMode

Gets or sets a value indicating how the cells of the TCnDataGridView can be selected.

ShowCellErrors

Gets or sets a value indicating whether to show cell errors.

ShowCellToolTips

Gets or sets a value indicating whether or not ToolTips will show when the mouse pointer pauses on a cell.

ShowEditingIcon

Gets or sets a value indicating whether or not the editing glyph is visible in the row header of the cell being edited.

ShowRowErrors

Gets or sets a value indicating whether row headers will display error glyphs for each row that contains a data entry error.

Size

Gets or sets the height and width of the control. (Inherited from TClrCustomControl.)

SortedColumn

Gets the column by which the TCnDataGridView contents are currently sorted.

SortOrder

Gets a value indicating whether the items in the TCnDataGridView control are sorted in ascending or descending order, or are not sorted.

StandardTab

Gets or sets a value indicating whether the TAB key moves the focus to the next control in the tab order rather than moving focus to the next cell in the control.

TabOrder

Indicates the position of the control in its parent's tab order. (Inherited from TClrCustomControl.)

TabStop

Gets or sets a value indicating whether the user can give the focus to this control using the TAB key. (Inherited from TClrCustomControl.)

Text

Gets or sets the text associated with this control. (Inherited from TClrCustomControl.)

ToolTip

Associates ToolTip control with this control. (Inherited from TClrCustomControl.)

TooltipText

The ToolTip text to display when the pointer is on the control. (Inherited from TClrCustomControl.)

TopLeftHeaderCell

Gets or sets the header cell located in the upper left corner of the TCnDataGridView control.

UserSetCursor

Gets the default or user-specified value of the Cursor property.

UseWaitCursor

Gets or sets a value indicating whether to use the wait cursor for the current control and all child controls. (Inherited from TClrCustomControl.)

VerticalScrollingOffset

Gets the number of pixels by which the control is scrolled vertically.

VirtualMode

Gets the number of pixels by which the control is scrolled vertically.

Visible

Gets or sets a value indicating whether the control and all its child controls are displayed. (Inherited from TClrCustomControl.)

Top
Show:
 NameDescription
AdjustColumnHeaderBorderStyle(_DataGridViewAdvancedBorderStyle,_DataGridViewAdvancedBorderStyle,Boolean,Boolean)

Adjusts the DataGridViewAdvancedBorderStyle for a column header cell of a TCnDataGridView that is currently being painted.

AdjustSize

Adjusts the control's size according to its contents and constraints. (Inherited from TClrCustomControl.)

AreAllCellsSelected(Boolean)

Returns a value indicating whether all the DataGridView cells are currently selected.

AutoResizeColumn(Integer)

Overloaded. Adjusts the width of the specified column to fit the contents of all its cells, including the header cell.

AutoResizeColumn(Integer,TDataGridViewAutoSizeColumnMode)

Overloaded. Adjusts the width of the specified column using the specified size mode.

AutoResizeColumnHeadersHeight

Overloaded. Adjusts the height of the column headers to fit the contents of the largest column header.

AutoResizeColumnHeadersHeight(Integer)

Overloaded. Adjusts the height of the column headers based on changes to the contents of the header in the specified column.

AutoResizeColumns

Overloaded. Adjusts the width of all columns to fit the contents of all their cells, including the header cells.

AutoResizeColumns(TDataGridViewAutoSizeColumnsMode)

Overloaded. Adjusts the width of all columns using the specified size mode.

AutoResizeRow(Integer)

Overloaded. Adjusts the height of the specified row to fit the contents of all its cells including the header cell.

AutoResizeRow(Integer,TDataGridViewAutoSizeRowMode)

Overloaded. Adjusts the height of the specified row using the specified size mode.

AutoResizeRowHeadersWidth(Integer,TDataGridViewRowHeadersWidthSizeMode)

Overloaded. Adjusts the width of the row headers based on changes to the contents of the header in the specified row and using the specified size mode.

AutoResizeRowHeadersWidth(TDataGridViewRowHeadersWidthSizeMode)

Overloaded. Adjusts the width of the row headers using the specified size mode.

AutoResizeRows

Overloaded. Adjusts the heights of all rows to fit the contents of all their cells, including the header cells.

AutoResizeRows(TDataGridViewAutoSizeRowsMode)

Overloaded. Adjusts the heights of the rows using the specified size mode value.

BeginEdit(Boolean)

Puts the current cell in edit mode.

CanAutoSize(Integer,Integer)

Indicates how the control can be resized. (Inherited from TClrCustomControl.)

CancelEdit

Cancels edit mode for the currently selected cell and discards any changes.

CanFocus

Indicates whether a control can receive focus. (Inherited from TClrCustomControl.)

CanResize(Integer,Integer)

Indicates how the control can respond to a resize attempt (Inherited from TClrCustomControl.)

ChangeScale(Integer,Integer)

Repositions and resizes the form by the ratio M/D, adjusting its client area and font size as needed. (Inherited from TClrCustomControl.)

ClearSelection

Clears the current selection by unselecting all selected cells.

CommitEdit(TDataGridViewDataErrorContexts_Set)

Commits changes in the current cell to the data cache without ending edit mode.

CreateControl

Forces the creation of the visible control, including the creation of the handle and any visible child controls. (Inherited from TClrCustomControl.)

CreateGraphics

Creates the Graphics for the control. (Inherited from TClrCustomControl.)

CreateHandle

Creates a handle for the control. (Inherited from TClrCustomControl.)

CreateParams(TCreateParams)

Initializes the window-creation parameter record when the form window is created. (Inherited from TClrCustomControl.)

DblClick

OnDblClick event dispatcher. (Inherited from TClrCustomControl.)

DisplayedColumnCount(Boolean)

Returns the number of columns displayed to the user.

DisplayedRowCount(Boolean)

Returns the number of rows displayed to the user.

DoAddDockClient(TControl,TRect)

Performs actions when a control is docked to the windowed control. (Inherited from TClrCustomControl.)

DoBackColorChange(TObject)

Performs actions when a control BackColor changes. (Inherited from TClrCustomControl.)

DoBackgroundImageChange(TObject)

Performs actions when a control BackgroundImage changes. (Inherited from TClrCustomControl.)

DockOver(TDragDockObject,Integer,Integer,TDragState,Boolean)

Responds when a docking client is dragged over the windowed control. (Inherited from TClrCustomControl.)

DockReplaceDockClient(TControl,TWinControl,TControl,TAlign,TControl)

Invalidates the first dock site in the list of child controls. (Inherited from TClrCustomControl.)

DoDockOver(TDragDockObject,Integer,Integer,TDragState,Boolean)

Generates an OnDockOver event. (Inherited from TClrCustomControl.)

DoEnter

Respond to receiving input focus. (Inherited from TClrCustomControl.)

DoExit

Responds to losing input focus. (Inherited from TClrCustomControl.)

DoFontChange(TObject)

Performs actions when a control Font changes. (Inherited from TClrCustomControl.)

DoForeColorChange(TObject)

Performs actions when a control ForeColor changes. (Inherited from TClrCustomControl.)

DoGetControlClientRectangle

Gets the rectangle that represents the client area of the control. (Inherited from TClrCustomControl.)

DoGetDefaultBorderStyle

Gets the default border type of the control. (Overrides TClrCustomControl.DoGetDefaultBorderStyle.)

DoGetDotNetBaseControl

Gets the base .Net control. (Overrides TClrCustomControl.DoGetDotNetBaseControl.)

DoGetDotNetControlDefaultHeight

Gets the default height of the control. (Overrides TClrCustomControl.DoGetDotNetControlDefaultHeight.)

DoGetDotNetControlDefaultWidth

Gets the default Width of the control. (Overrides TClrCustomControl.DoGetDotNetControlDefaultWidth.)

DoGetDotNetControlHandle

Gets the window handle that the control is bound to. (Inherited from TClrCustomControl.)

DoInitializeDotNetControl

Creates and initializes the .Net control. (Inherited from TClrCustomControl.)

DoLocationChange(TObject)

Performs actions when a control Location changes. (Inherited from TClrCustomControl.)

DoMaximumSizeChange(TObject)

Performs actions when a control MaximumSize changes. (Inherited from TClrCustomControl.)

DoMinimumSizeChange(TObject)

Performs actions when a control MinimumSize changes. (Inherited from TClrCustomControl.)

DoMouseWheel(TShiftState,Integer,TPoint)

Processes mouse wheel motion. (Inherited from TClrCustomControl.)

DoMouseWheelDown(TShiftState,TPoint)

Is an OnMouseWheelDown event dispatcher. (Inherited from TClrCustomControl.)

DoMouseWheelUp(TShiftState,TPoint)

Is an OnMouseWheelUp event dispatcher. (Inherited from TClrCustomControl.)

DoOnBackgroundColorChanged(TObject)

Represents method DoOnBackgroundColorChanged(TObject).

DoOnGridColorChanged(TObject)

Represents method DoOnGridColorChanged(TObject).

DoSetControlBorderStyle(TBorderStyle_)

Sets the border type of the control. (Inherited from TClrCustomControl.)

DoSetControlStyles(TControlStyles_Set,Boolean)

Set the style of the control. (Inherited from TClrCustomControl.)

DoSetDotNetControlParent

Specifies the parent of the control. (Inherited from TClrCustomControl.)

DoShowContextMenu(TPoint)

Represents method DoShowContextMenu(TPoint). (Inherited from TClrCustomControl.)

DoSizeChange(TObject)

Performs actions when a control Size changes. (Inherited from TClrCustomControl.)

DoSupportTextProperty

Check if the Text property is supported by the control. (Inherited from TClrCustomControl.)

DoUseClrContainer

Specify whether to use the common language runtime usercontrol container to host the .Net control. (Inherited from TClrCustomControl.)

DrawToBitmap(TBitmap,TRect)

Supports rendering to the specified bitmap. (Inherited from TClrCustomControl.)

EndEdit

Overloaded. Commits and ends the edit operation on the current cell using the default error context.

EndEdit(TDataGridViewDataErrorContexts_Set)

Overloaded. Commits and ends the edit operation on the current cell using the specified error context.

Focus

Sets input focus to the control. (Inherited from TClrCustomControl.)

Focused

Determines whether the control has input focus. (Inherited from TClrCustomControl.)

GetCellCount(TDataGridViewElementStates_Set)

Gets the number of cells that satisfy the provided filter.

GetCellDisplayRectangle(Integer,Integer,Boolean)

Returns the rectangle that represents the display area for a cell.

GetClipboardContent

Retrieves the formatted values that represent the contents of the selected cells for copying to the Clipboard.

GetClrObject

Get the common language runtime object from the internal control interface. (Inherited from TClrCustomControl.)

GetColumnCount(TDataGridViewElementStates_Set)

Overloaded. Represents method GetColumnCount(TDataGridViewElementStates_Set).

GetColumnDisplayRectangle(Integer,Boolean)

Returns the rectangle that represents the display area for a column, as determined by the column index.

GetColumnsWidth(TDataGridViewElementStates_Set)

Overloaded. Returns the width, in pixels, required to display all of the columns that meet the given filter requirements.

GetFirstColumn(TDataGridViewElementStates_Set)

Overloaded. Returns the first column in display order that meets the given inclusion-filter requirements.

GetFirstColumn(TDataGridViewElementStates_Set,TDataGridViewElementStates_Set)

Overloaded.

GetLastColumn(TDataGridViewElementStates_Set,TDataGridViewElementStates_Set)

Returns the last column in display order that meets the given filter requirements.

GetNextColumn(_DataGridViewColumn,TDataGridViewElementStates_Set,TDataGridViewElementStates_Set)

Gets the first column after the given column in display order that meets the given filter requirements.

GetPreviousColumn(_DataGridViewColumn,TDataGridViewElementStates_Set,TDataGridViewElementStates_Set)

Gets the last column prior to the given column in display order that meets the given filter requirements.

GetRowDisplayRectangle(Integer,Boolean)

Returns the rectangle that represents the display area for a row, as determined by the row index.

HitTest(Integer,Integer)

Returns location information, such as row and column indices, given x- and y-coordinates.

Invalidate

Overloaded. Invalidates the entire surface of the control and causes the control to be redrawn. (Inherited from TClrCustomControl.)

Invalidate(Boolean)

Overloaded. Invalidates a specific region of the control and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control. (Inherited from TClrCustomControl.)

Invalidate(TRect)

Overloaded. Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. (Inherited from TClrCustomControl.)

Invalidate(TRect,Boolean)

Overloaded. Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control. (Inherited from TClrCustomControl.)

InvalidateCell(Integer,Integer)

Overloaded. Invalidates the cell with the specified row and column indexes, forcing it to be repainted.

InvalidateCell(_DataGridViewCell)

Overloaded. Invalidates the specified cell of the TCnDataGridView, forcing it to be repainted.

InvalidateColumn(Integer)

Invalidates the specified column of the TCnDataGridView, forcing it to be repainted.

InvalidateRow(Integer)

Invalidates the specified row of the TCnDataGridView, forcing it to be repainted.

IsKeyLocked(TKeys_Set)

Determines whether the CAPS LOCK, NUM LOCK, or SCROLL LOCK key is in effect. (Inherited from TClrCustomControl.)

IsMnemonic(WCHAR,String)

Determines if the specified character is the mnemonic character assigned to the control in the specified string. (Inherited from TClrCustomControl.)

KeyDown(Word,TShiftState)

Responds to key press events. (Inherited from TClrCustomControl.)

KeyPress(Char)

Responds to keyboard input. (Inherited from TClrCustomControl.)

KeyUp(Word,TShiftState)

Respond to released key. (Inherited from TClrCustomControl.)

MouseDown(TMouseButton,TShiftState,Integer,Integer)

OnMouseDown event dispatcher. (Inherited from TClrCustomControl.)

MouseMove(TShiftState,Integer,Integer)

Responds to mouse moving over control area. (Inherited from TClrCustomControl.)

MouseUp(TMouseButton,TShiftState,Integer,Integer)

Is an OnMouseUp event dispatcher. (Inherited from TClrCustomControl.)

Notification(TComponent,TOperation)

Represents method Notification(TComponent,TOperation). (Overrides TClrCustomControl.Notification(TComponent,TOperation).)

NotifyCurrentCellDirty(Boolean)

Notifies the TCnDataGridView that the current cell has uncommitted changes.

Paint

Renders the image of a windowed control. (Inherited from TClrCustomControl.)

PerformLayout

Overloaded. Forces the control to apply layout logic to all its child controls. (Inherited from TClrCustomControl.)

PropertyChanged

Responds to change in the published properties of the control. (Inherited from TClrCustomControl.)

QueryInterface(TGUID,Void)

Returns a reference to a specified interface if that interface is supported by the control. (Inherited from TClrCustomControl.)

Refresh

Forces the control to invalidate its client area and immediately redraw itself and any child controls. (Inherited from TClrCustomControl.)

RefreshEdit

Refreshes the value of the current cell with the underlying cell value when the cell is in edit mode, discarding any previous value.

RegisterEventCallBack(ClrWString,Pointer)

Add an event to the instance using the specified event name and function pointer which is the event handler. The RegisterEventCallBack method does not directly add the event handler to the event. A hooking mechanism is used such that if the event is fired, the hook event is also fired which in turn calls the function pointer. (Inherited from TClrCustomControl.)

RegisterEventSource

Register the Delphi object which will raise the .Net event handler. (Inherited from TClrCustomControl.)

Repaint

Repaints the entire control. (Inherited from TClrCustomControl.)

ResetBackColor

Resets the BackColor property to its default value. (Inherited from TClrCustomControl.)

ResetBindings

Causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values (Inherited from TClrCustomControl.)

ResetCursor

Resets the Cursor property to its default value. (Inherited from TClrCustomControl.)

ResetFont

Resets the Font property to its default value. (Inherited from TClrCustomControl.)

ResumeLayout

Overloaded. Resumes usual layout logic. (Inherited from TClrCustomControl.)

ResumeLayout(Boolean)

Overloaded. Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests. (Inherited from TClrCustomControl.)

Scale(TSizeF)

Scales the control and all child controls by the specified scaling factor. (Inherited from TClrCustomControl.)

Select

Activates a control. (Inherited from TClrCustomControl.)

SelectAll

Selects all the cells in the TCnDataGridView.

SetAutoSize(Boolean)

Sets the value of the AutoSize property. (Inherited from TClrCustomControl.)

SetBorderStyle(TBorderStyle)

Sets the value of the BorderStyle property. (Inherited from TClrCustomControl.)

SetBounds(Integer,Integer,Integer,Integer)

Sets the windowed control's boundary properties all at once. (Inherited from TClrCustomControl.)

SetName(TComponentName)

Sets the name of the control. (Inherited from TClrCustomControl.)

SetText(String)

Sets the text of the control. (Inherited from TClrCustomControl.)

Sort(_DataGridViewColumn,TListSortDirection)

Overloaded. Sorts the contents of the TCnDataGridView control in ascending or descending order based on the contents of the specified column.

Sort(_IComparer)

Overloaded. Sorts the contents of the DataGridView control using an implementation of the IComparer interface.

SuspendLayout

Temporarily suspends the layout logic for the control. (Inherited from TClrCustomControl.)

UnRegisterEventCallBack(ClrWString,Pointer)

Remove an event from the instance using the specified event name and function pointer which is the event handler. (Inherited from TClrCustomControl.)

UnRegisterEventSource

Represents method UnRegisterEventSource. (Inherited from TClrCustomControl.)

Update

Causes the control to redraw the invalidated regions within its client area. (Inherited from TClrCustomControl.)

UpdateCellErrorText(Integer,Integer)

Forces the cell at the specified location to update its error text.

UpdateCellValue(Integer,Integer)

Forces the control to update its display of the cell at the specified location based on its new value, applying any automatic sizing modes currently in effect.

UpdateDotNetControlSize

Updates .Net control size. (Inherited from TClrCustomControl.)

UpdateRowErrorText(Integer)

Overloaded. Forces the row at the given row index to update its error text.

UpdateRowErrorText(Integer,Integer)

Overloaded. Forces the rows in the given range to update their error text.

UpdateRowHeightInfo(Integer,Boolean)

Forces the specified row or rows to update their height information.

UpdateStyleElements

Invalidates a specific region of the control and causes a paint message to be sent to the control. (Inherited from TClrCustomControl.)

WndProc(TMessage)

Provides specific message responses for the control. (Inherited from TClrCustomControl.)

_AddRef

Called when an application uses a component interface. (Inherited from TClrCustomControl.)

_Release

Called when an application releases a component interface. (Inherited from TClrCustomControl.)

Top
Show:
 NameDescription
OnAllowUserToAddRowsChanged

Occurs when the value of the AllowUserToAddRows property changes.

OnAllowUserToDeleteRowsChanged

Occurs when the value of the AllowUserToDeleteRows property changes.

OnAllowUserToOrderColumnsChanged

Occurs when the value of the AllowUserToOrderColumns property changes.

OnAllowUserToResizeColumnsChanged

Occurs when the value of the AllowUserToResizeColumns property changes.

OnAllowUserToResizeRowsChanged

Occurs when the value of the AllowUserToResizeRows property changes.

OnAlternatingRowsDefaultCellStyleChanged

Occurs when the value of the AlternatingRowsDefaultCellStyle property changes.

OnAutoGenerateColumnsChanged

Occurs when the value of the AutoGenerateColumns property changes.

OnAutoSizeColumnModeChanged

Occurs when the value of the AutoSizeMode property of a column changes.

OnAutoSizeColumnsModeChanged

Occurs when the value of the AutoSizeColumnsMode property changes.

OnAutoSizeRowsModeChanged

Occurs when the value of the AutoSizeRowsMode property changes.

OnBackColorChanged

Occurs when the value of the BackColor property changes. (Inherited from TClrCustomControl.)

OnBackgroundColorChanged

Occurs when the value of the BackgroundColor property changes.

OnBackgroundImageChanged

Occurs when the value of the BackgroundImage property changes. (Inherited from TClrCustomControl.)

OnBorderStyleChanged

Occurs when the value of the BorderStyle property changes.

OnCancelRowEdit

Occurs when the VirtualMode property of a TCnDataGridView control is true and the cancels edits in a row.

OnCausesValidationChanged

Occurs when the value of the CausesValidation property changes. (Inherited from TClrCustomControl.)

OnCellBeginEdit

Occurs when edit mode starts for the selected cell.

OnCellBorderStyleChanged

Occurs when the border style of a cell changes.

OnCellClick

Occurs when any part of a cell is clicked.

OnCellContentClick

Occurs when the content within a cell is clicked.

OnCellContentDoubleClick

Occurs when the user double-clicks a cell's contents.

OnCellContextMenuStripChanged

Occurs when the ContextMenuStrip property changes.

OnCellContextMenuStripNeeded

Occurs when a cell's shortcut menu is needed.

OnCellDoubleClick

Occurs when the user double-clicks anywhere in a cell.

OnCellEndEdit

Occurs when edit mode stops for the currently selected cell.

OnCellEnter

Occurs when the current cell changes in the TCnDataGridView control or when the control receives input focus.

OnCellErrorTextChanged

Occurs when the value of the ErrorText property of a cell changes.

OnCellErrorTextNeeded

Occurs when a cell's error text is needed.

OnCellFormatting

Occurs when the contents of a cell need to be formatted for display.

OnCellLeave

Occurs when a cell loses input focus and is no longer the current cell.

OnCellMouseClick

Occurs whenever the user clicks anywhere on a cell with the mouse.

OnCellMouseDoubleClick

Occurs when a cell within the TCnDataGridView is double-clicked.

OnCellMouseDown

Occurs when the user presses a mouse button while the mouse pointer is within the boundaries of a cell.

OnCellMouseEnter

Occurs when the mouse pointer enters a cell.

OnCellMouseLeave

Occurs when the mouse pointer leaves a cell.

OnCellMouseMove

Occurs when the mouse pointer moves over the TCnDataGridView control.

OnCellMouseUp

Occurs when the user releases a mouse button while over a cell.

OnCellPainting

Occurs when a cell needs to be drawn.

OnCellParsing

Occurs when a cell leaves edit mode if the cell value has been modified.

OnCellStateChanged

Occurs when a cell state changes, such as when the cell loses or gains focus.

OnCellStyleChanged

Occurs when the Style property of a DataGridViewCell changes.

OnCellStyleContentChanged

Occurs when one of the values of a cell style changes.

OnCellToolTipTextChanged

Occurs when the ToolTipText property value changes for a cell in the TCnDataGridView.

OnCellToolTipTextNeeded

Occurs when a cell's ToolTip text is needed.

OnCellValidated

Occurs after the cell has finished validating.

OnCellValidating

Occurs when a cell loses input focus, enabling content validation.

OnCellValueChanged

Occurs when the value of a cell changes.

OnCellValueNeeded

Occurs when the VirtualMode property of the TCnDataGridView control is true and the TCnDataGridView requires a value for a cell in order to format and display the cell.

OnCellValuePushed

Occurs when the VirtualMode property of the TCnDataGridView control is true and a cell value has changed and requires storage in the underlying data source.

OnClientSizeChanged

Occurs when the value of the ClientSize property changes. (Inherited from TClrCustomControl.)

OnColumnAdded

Occurs when a column is added to the control.

OnColumnContextMenuStripChanged

Occurs when the ContextMenuStrip property of a column changes.

OnColumnDataPropertyNameChanged

Occurs when the value of the DataPropertyName property for a column changes.

OnColumnDefaultCellStyleChanged

Occurs when the value of the DefaultCellStyle property for a column changes.

OnColumnDisplayIndexChanged

Occurs when the value the DisplayIndex property for a column changes.

OnColumnDividerDoubleClick

Occurs when the user double-clicks a divider between two columns.

OnColumnDividerWidthChanged

Occurs when the DividerWidth property changes.

OnColumnHeaderCellChanged

Occurs when the contents of a column header cell change.

OnColumnHeaderMouseClick

Occurs when the user clicks a column header.

OnColumnHeaderMouseDoubleClick

Occurs when a column header is double-clicked.

OnColumnHeadersBorderStyleChanged

Occurs when the ColumnHeadersBorderStyle property changes.

OnColumnHeadersDefaultCellStyleChanged

Occurs when the value of the ColumnHeadersDefaultCellStyle property changes.

OnColumnHeadersHeightChanged

Occurs when the value of the ColumnHeadersHeight property changes.

OnColumnHeadersHeightSizeModeChanged

Occurs when the value of the ColumnHeadersHeightSizeMode property changes.

OnColumnMinimumWidthChanged

Occurs when the value of the MinimumWidth property for a column changes.

OnColumnNameChanged

Occurs when the value of the Name property for a column changes.

OnColumnRemoved

Occurs when a column is removed from the control.

OnColumnSortModeChanged

Occurs when the value of the SortMode property for a column changes.

OnColumnStateChanged

Occurs when a column changes state, such as gaining or losing focus.

OnColumnToolTipTextChanged

Occurs when the ToolTipText property value changes for a column in the TCnDataGridView.

OnColumnWidthChanged

Occurs when the value of the Width property for a column changes.

OnCurrentCellChanged

Occurs when the CurrentCell property changes.

OnCurrentCellDirtyStateChanged

Occurs when the state of a cell changes in relation to a change in its contents.

OnDataBindingComplete

Occurs after a data-binding operation has finished.

OnDataError

Occurs when an external data-parsing or validation operation throws an exception, or when an attempt to commit data to a data source fails.

OnDataMemberChanged

Occurs when value of the DataMember property changes.

OnDataSourceChanged

Occurs when the value of the DataSource property changes.

OnDefaultCellStyleChanged

Occurs when the value of the DefaultCellStyle property changes.

OnDefaultValuesNeeded

Occurs when the user enters the row for new records so that it can be populated with default values.

OnEditingControlShowing

Occurs when a control for editing a cell is showing.

OnEditModeChanged

Occurs when the value of the EditMode property changes.

OnEnabledChanged

Occurs when the Enabled property value has changed. (Inherited from TClrCustomControl.)

OnFontChanged

Occurs when the Font property value changes. (Inherited from TClrCustomControl.)

OnForeColorChanged

Occurs when the ForeColor property value changes. (Inherited from TClrCustomControl.)

OnGotFocus

Occurs when the control receives focus. (Inherited from TClrCustomControl.)

OnGridColorChanged

Occurs when the value of the GridColor property changes.

OnInvalidated

Occurs when a control's display requires redrawing. (Inherited from TClrCustomControl.)

OnLostFocus

Occurs when the control loses focus. (Inherited from TClrCustomControl.)

OnMouseDoubleClick

Occurs when the control is double clicked by the mouse. (Inherited from TClrCustomControl.)

OnMouseWheel

Occurs when the mouse wheel moves while the control has focus. (Inherited from TClrCustomControl.)

OnMove

Occurs when the control is moved. (Inherited from TClrCustomControl.)

OnMultiSelectChanged

Occurs when the value of the MultiSelect property changes.

OnNewRowNeeded

Occurs when the VirtualMode property of the TCnDataGridView is true and the user navigates to the new row at the bottom of the TCnDataGridView.

OnReadOnlyChanged

Occurs when the ReadOnly property changes.

OnResize

Occurs when the control is resized. (Inherited from TClrCustomControl.)

OnRowContextMenuStripChanged

Occurs when the ContextMenuStrip property changes.

OnRowContextMenuStripNeeded

Occurs when a row's shortcut menu is needed.

OnRowDefaultCellStyleChanged

Occurs when the value of the DefaultCellStyle property for a row changes.

OnRowDirtyStateNeeded

Occurs when the VirtualMode property of the TCnDataGridView control is true and the TCnDataGridView needs to determine whether the current row has uncommitted changes.

OnRowDividerDoubleClick

Occurs when the user double-clicks the divider between two rows.

OnRowDividerHeightChanged

Occurs when the DividerHeight property changes.

OnRowEnter

Occurs when a row receives input focus but before it becomes the current row.

OnRowErrorTextChanged

Occurs when the ErrorText property of a row changes.

OnRowErrorTextNeeded

Occurs when a row's error text is needed.

OnRowHeaderCellChanged

Occurs when the user changes the contents of a row header cell.

OnRowHeaderMouseClick

Occurs when the user clicks within the boundaries of a row header.

OnRowHeaderMouseDoubleClick

Occurs when a row header is double-clicked.

OnRowHeadersBorderStyleChanged

Occurs when the RowHeadersBorderStyle property changes.

OnRowHeadersDefaultCellStyleChanged

Occurs when the value of the RowHeadersDefaultCellStyle property changes.

OnRowHeadersWidthChanged

Occurs when value of the RowHeadersWidth property changes.

OnRowHeadersWidthSizeModeChanged

Occurs when the RowHeadersBorderStyle property changes.

OnRowHeightChanged

Occurs when the value of the Height property for a row changes.

OnRowHeightInfoNeeded

Occurs when information about row height is requested.

OnRowHeightInfoPushed

Occurs when the user changes the height of a row.

OnRowLeave

Occurs when a row loses input focus and is no longer the current row.

OnRowMinimumHeightChanged

Occurs when the value of the MinimumHeight property for a row changes.

OnRowPostPaint

Occurs after a DataGridViewRow is painted.

OnRowPrePaint

Occurs before a DataGridViewRow is painted

OnRowsAdded

Occurs after a new row is added to the TCnDataGridView.

OnRowsDefaultCellStyleChanged

Occurs when the value of the RowsDefaultCellStyle property changes.

OnRowsRemoved

Occurs when a row or rows are deleted from the TCnDataGridView.

OnRowStateChanged

Occurs when a row changes state, such as losing or gaining input focus.

OnRowUnshared

Occurs when a row's state changes from shared to unshared.

OnRowValidated

Occurs after a row has finished validating.

OnRowValidating

Occurs when a row is validating.

OnScroll

Occurs when the user scrolls through the control contents.

OnSelectionChanged

Occurs when the current selection changes.

OnSizeChanged

Occurs when the Size property value changes. (Inherited from TClrCustomControl.)

OnSortCompare

Occurs when the TCnDataGridView compares two cell values to perform a sort operation.

OnSorted

Occurs when the TCnDataGridView control completes a sorting operation.

OnSystemColorsChanged

Occurs when the system colors change. (Inherited from TClrCustomControl.)

OnTabIndexChanged

Occurs when the TabOrder/TabIndex property value changes. (Inherited from TClrCustomControl.)

OnTabStopChanged

Occurs when the TabStop property value changes. (Inherited from TClrCustomControl.)

OnTextChanged

Occurs when the Text property value changes. (Inherited from TClrCustomControl.)

OnUserAddedRow

Occurs when the user has finished adding a row to the TCnDataGridView control.

OnUserDeletedRow

Occurs when the user has finished deleting a row from the TCnDataGridView control.

OnUserDeletingRow

Occurs when the user deletes a row from the TCnDataGridView control.

OnValidated

Occurs when the control is finished validating. (Inherited from TClrCustomControl.)

OnValidating

Occurs when the control is validating. (Inherited from TClrCustomControl.)

OnVisibleChanged

Occurs when the Visible property value changes. (Inherited from TClrCustomControl.)

Top

See C:\Users\Public\Documents\CrystalNet Technologies\.Net VCL for Delphi Demo Folder after installation for examples of how to use this control.