[]
        
(Showing Draft Content)

C1.Win.C1TrueDBGrid.C1TrueDBDropdown

C1TrueDBDropdown Class

Represents a multicolumn drop-down list box for a grid column.

Inheritance
C1TrueDBDropdown
Namespace: C1.Win.C1TrueDBGrid
Assembly: C1.Win.C1TrueDBGrid.4.8.dll
Syntax
[ToolboxBitmap(typeof(C1TrueDBDropdown), "C1TrueDBDropdown.png")]
public class C1TrueDBDropdown : Frame, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, ISupportInitialize, IComparable

Constructors

Name Description
C1TrueDBDropdown()

Creates a new instance of the object.

Properties

Name Description
AllowColMove

Gets or sets a value indicating the ability to move columns.

AllowColSelect

Gets or sets a value indicating the ability to select columns.

AllowRowSizing

Gets or sets how interactive row resizing is performed.

AllowSizing

Gets or sets a value indicating whether dropdown resizing is allowed.

AlternatingRows

Gets or sets a value indicating whether the dropdown uses the OddRowStyle for odd-numbered rows and EvenRowStyle for even-numbered rows.

Bookmark

Gets or sets the current row position of the underlying CurrencyManager.

CaptionStyle

Gets or sets the Style object that controls the appearance of the caption area.

CaseSensitive

True if string comparisons are case-sensitive; otherwise, False. Default: False

Col

Gets or sets the column position.

ColumnCaptionHeight

Gets or sets the height of column captions.

ColumnFooterHeight

Gets or sets the height of column footers.

ColumnFooters

Gets or sets a value indicating the visibility of column footers.

ColumnHeaders

Gets or sets a value indicating the visibility of column headers.

Columns

Gets the collection of C1DataColumn objects.

CurrentCellVisible

Gets or sets a value indicating the visibility of the current cell.

DefColWidth

Gets or sets the default width for all grid columns.

DefaultSize

Gets the default size of the control.

DisplayColumns

Gets the collection of C1DisplayColumn objects.

DisplayMember

Gets or sets the property used for incremental search.

DropdownWidth

Gets or sets the width of the dropdown.

EmptyRows

Gets or sets a value that determines how the grid displays rows below the last data row.

EvenRowStyle

Gets or sets the Style object that controls the appearance of an even-numbered row when using AlternatingRows.

ExtendRightColumn

Gets or sets a value that determines how the last column will extend to fill the dead area of the dropdown.

FetchRowStyles

Gets or sets a value indicating whether the FetchRowStyle event will be raised.

FirstRow

Gets or sets the row index for the first visible row.

FooterStyle

Gets or sets the Style object that controls the appearance of column footers.

HScrollBar

Gets the HBar object that controls the appearance of the horizontal scrollbar.

HeadingHotStyle

Gets or sets the Style object that controls the appearance of the grids hot column headers.

HeadingStyle

Gets or sets the Style object that controls the appearance of the grids column headers.

HighLightRowStyle

Gets or sets the Style object that controls the appearance of a highlighted row.

IntegralHeight

Gets or sets a value indicating whether the control should resize to avoid showing partial items.

LeftCol

Gets or sets the zero-based index of the leftmost column.

OddRowStyle

Gets or sets the Style object that controls the appearance of an odd-numbered row when using AlternatingRows.

Row

Gets or sets the the current row.

RowDivider

Gets or sets the style of the border drawn between rows.

RowSubDividerColor

Gets or sets the color of the subrow divider in a multi-line dropdown.

RowTracking

Gets or sets a value that determines if rows are highlighted under the mouse.

ScrollTips

Gets or sets a value that determines whether the grid displays a pop-up text window when the scrollbar thumb is dragged.

Style

Gets or sets the root Style object.

Styles

Gets the collection of named Style objects.

VScrollBar

Gets the VBar object that controls the appearance of the vertical scrollbar.

ValueMember

Gets or sets the property used to update the associated grid column.

ValueTranslate

Gets or sets a value that determines how the grid display values in a column.

VisibleCols

Gets the number of visible columns in the dropdown.

VisibleRows

Gets the number of visible rows in the dropdown.

Methods

Name Description
AddCellStyle(CellStyleFlag, Style)

Controls the Style used to change the appearance for cells meeting the specified condition.

AddRegexCellStyle(CellStyleFlag, Style, string)

Controls the Style used to change the appearance of cells according to their contents.

ClearCellStyle(CellStyleFlag)

Restores the default layout.

ClearFields()

Restores the default layout.

ClearRegexCellStyle(CellStyleFlag)

Removes a cell condition established with a previous call to the AddRegexCellStyle(CellStyleFlag, Style, string) method.

ColContaining(int)

Returns the column index for the column containing the specified X coordinate.

CreateView()

Creates the view.

CreateView(View)

Creates the view.

Dispose(bool)

Called when the class is being disposed.

GetCurrentSelIndex()

Gets the current selected index.

OnAfterColUpdate(ColEventArgs)

Raises C1.Win.C1TrueDBGrid.C1TrueDBDropdown.AfterColUpdate event.

OnBorderColorChanged(EventArgs)

Raises the BorderColorChanged event.

OnColMove(ColMoveEventArgs)

Occurs when the user has moved a column.

OnColResize(ColResizeEventArgs)

Occurs when the user has resized a column.

OnDataSourceChanged(EventArgs)

Occurs when the grids DataSource has changed.

OnDropDownClose(EventArgs)

Occurs when the dropdown closes.

OnDropDownOpen(EventArgs)

Occurs when the dropdown is opened.

OnDropDownOpening(CancelEventArgs)

Raises the DropDownOpening event.

OnFetchRowStyle(FetchRowStyleEventArgs)

Occurs whenever the grid is about to display a row of data and the FetchRowStyles property is True.

OnFetchScrollTips(FetchScrollTipsEventArgs)

Occurs whenever the grid has focus and the scrollbar thumb is moved using the mouse.

OnFirstRowChange(SplitEventArgs)

Occurs when the first displayed row of a control or split is changed.

OnFootClick(ColEventArgs)

Occurs when the user clicks on the column footer.

OnFormatText(FormatTextEventArgs)

Occurs when the grid is about to display cell data in a column whose NumberFormat property is set to the string FormatText Event.

OnHeadClick(ColEventArgs)

Occurs when the user clicks on the column header.

OnKeyDown(KeyEventArgs)

Inherited from control.

OnLeftColChange(SplitEventArgs)

Occurs when the first visible column of a grid or split is changed.

OnMouseDown(MouseEventArgs)
OnMouseMove(MouseEventArgs)
OnMouseUp(MouseEventArgs)

Raises the MouseUp event.

OnPaint(PaintEventArgs)
OnRowChange(EventArgs)

Occurs when the focus moves to a different row.

OnRowResize(CancelEventArgs)

Occurs when the user has finished resizing a grid row.

OnSelChange(CancelEventArgs)

Occurs when the user selects a different range of rows or columns.

OnUnboundColumnFetch(UnboundColumnFetchEventArgs)

Occurs when the grid needs to display the value of a cell in an unbound column.

OnValueItemError(ColEventArgs)

Occurs when the user attempts to enter invalid data into a column that is using value lists.

On_Scroll(CancelEventArgs)

Occurs when the user scrolls the grid.

Rebind()
Rebind(bool)

Reinitializes grid with data from its data source.

RowContaining(int)

Returns the zero-based index of the display row containing the Y specified coordinate.

ScrollCtl(int, int)

Scrolls the data area by the specified number of rows and columns

WndProc(ref Message)
initializeStyles()

Events

Name Description
BorderColorChanged

Occurs when the BorderColor property has changed.

ColMove

Occurs when the user has moved a column.

ColResize

Occurs when the user has resized a column.

DataSourceChanged

Occurs when the grids DataSource has changed.

DropDownClose

Occurs when the dropdown closes.

DropDownOpen

Occurs when the dropdown is opened.

DropDownOpening

Occurs before the dropdown is opened.

FetchRowStyle

Occurs whenever the grid is about to display a row of data and the FetchRowStyles property is True.

FetchScrollTips

Occurs whenever the grid has focus and the scrollbar thumb is moved using the mouse.

FirstRowChange

Occurs when the first displayed row of a control or split is changed.

FootClick

Occurs when the user clicks on the column footer.

FormatText

Occurs when the grid is about to display cell data in a column whose NumberFormat property is set to the string FormatText Event.

HeadClick

Occurs when the user clicks on the column header.

LeftColChange

Occurs when the first visible column of a grid or split is changed.

RowChange

Occurs when the focus moves to a different row.

RowResize

Occurs when the user has finished resizing a grid row.

Scroll

Occurs when the user scrolls the grid.

SelChange

Occurs when the user selects a different range of rows or columns.

UnboundColumnFetch

Occurs when the grid needs to display the value of a cell in an unbound column.

ValueItemError

Occurs when the user attempts to enter invalid data into a column that is using value lists.