RDTA.PickDP.Extensions.DBGrid Control

Maps a multivalued item to a grid. Each grid column can be assigned to an attribute in the item.

Public Constructors

New

Constructor.

Public Methods

addEditor

For internal use only.

add_Row

Adds a row to the end of the DBGrid and returns the new row number.

Clear

 

Disposed

Releases resources associated with the instance.

get_Cell

Gets the Cell Object indicated by the parameters.

getCell

Gets the Cell Object indicated by the parameters. For internal use only.

get_ColCount

Gets the total number of columns excluding the column heading.

get_CurrentCell

Gets the cell that has focus.

Get_DefaultEditor

 

get_GridEntered

For internal use only.

get_Header

 

getKeyColumn

Returns the column containing the data used as the key to fill other columns.

get_lastKeyPressed

Gets the last key pressed in the grid.

get_noEvents

Gets if events are disabled. For internal use only.

get_Row

Gets the row that has focus.

get_RowCount

Gets the number of rows of the grid.

get_RowHeader

Gets the control contained in the row of the column heading.

get_RowHeaders

Gets the row headings.

GridEnter

Indicates if the grid has focus. For internal use only.

insertRows

Inserts a number of rows from the specified row.

MemberwiseClone

Returns a copy of the current instance.  For internal use only.

ProcessDialogKey

For internal use only.

removeEditor

For internal use only.

removeRows

Removes the rows contained between the first row and the last row, both inclusive.

set_Cell

Sets focus to the specified cell and returns a Cell Object of the focused cell.

set_CurrentCell

For internal use only.

set_noEvents

For internal use only.

set_RowCount

Sets the number of rows of the grid and resets the grid.

Public Properties

Name

Type

Description

CellSelectedColor

System.Drawing.Color

Cell color of the selected cell.

DeadAreaColor

System.Drawing.Color

Dead area color.

DefaultCellBackColor

System.Drawing.Color

Default cell background color.

DefaultCellForeColor

System.Drawing.Color

Default cell foreground color.

DefaultColumnFont

System.Drawing.Font

Default column font.

DefaultColSize

Integer

Default column size.

DelKeyDeleteRow

Boolean

Indicates if the Delete key deletes the current row.

FirstColumnHeading

String

Title of the column heading.

FirstColumnSize

IntegerPublic Properties

Size of the column heading.

FirstColumnText

String

Text of the column heading.

gridColumns

Column( )

Number of columns in the Grid.

insertRowAfterEnter

Boolean

Indicates if pressing Enter while positioned on the last row inserts a new row and raises an InsertRow event.

InsKeyInsertRow

Boolean

Indicates if pressing the Insert key inserts a new row and raises an InsertRow event.

KeyColumn

Column

Column that contains the data’s primary key. If this column is empty, the rest of the data in the row is ignored.

LineColor

System.Drawing.Color

Line color.

RowHeaderText

String

Gets or sets the text of the column heading at the specified row.

Public Events

Name

Type

Description

EnterCell

Event

Event fires when the cell gains focus. Adds the RDTA.PickDP.Extensions.Cell.get_Cell () method which returns the entered cell.

InsertRow

Event

Event fires when the Insert key is pressed. Adds the RDTA.PickDP.Extensions.Cell.get_Cell () method which returns the cell where the row is entered.

LeaveCell

Event

Event fires when losing the focus of a cell. Adds the RDTA.PickDP.Extensions.Cell.get_Cell () method which returns the exited cell.

RemoveRow

Event

Event fires when the Delete key is pressed. Adds the RDTA.PickDP.Extensions.Cell.get_Cell () method which returns the cell where the row is being deleted.

Examples

5