[]
        
(Showing Draft Content)

C1.Win.Input.DbNavigator.C1DbNavigator

C1DbNavigator Class

Represents a data bound control supporting convenient navigation over data source rows and common data actions such as updating the data source and refreshing data.

Namespace: C1.Win.Input.DbNavigator
Assembly: C1.Win.Input.DbNavigator.8.dll
Syntax
[ToolboxBitmap(typeof(C1DbNavigator), "C1DbNavigator.png")]
public class C1DbNavigator : XViewLight, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IView, ISupportUia, ISupportInitialize, IUiaExpandCollapseProvider, IUiaTransformProvider

Constructors

Name Description
C1DbNavigator()

Initializes a new instance of the C1DbNavigator.

Properties

Name Description
AutoSize

Gets or sets a value that indicates whether the control resizes based on its contents.

BackColor
ConfirmDelete

Whether a confirmation dialog is shown before deleting a record.

DataMember

"For multi-table data sources, specifies a specific table to which the control is bound.

DataSource

The data source object to which the control is bound.

DefaultMargin
DefaultPadding
DefaultSize
ForeColor
ImageList

Gets or sets the ImageList that contains the images used by the control.

Items

Gets the collection of the items contained in this control.

Margin

Gets or sets the space between controls.

Orientation

Gets or sets the orientation of control.

Padding

Gets or sets padding within the control.

Record

Gets the current record in the DataSource.

RecordCount

Returns the number of rows in the table.

RecordPosition

Gets or sets the current row position in the table (from 0 to RowCount - 1).

ShowToolTips

Gets or sets whether the control should display tooltips for elements.

Styles

Gets or sets the C1DbNavigator styles.

Methods

Name Description
AddRecord()

Adds a new record to the DataSource.

Apply()

Ends and applies the current edit operation.

BeginInit()

Signals the object that initialization is starting.

BeginUpdate()

Suspends painting during long update operations.

Cancel()

Ends and cancels the current edit operation.

CreateUiaItem(UiaItem)

Creates UI Automation object of this control.

DeleteRecord()

Deletes the current record from the DataSource.

Dispose(bool)

Releases the unmanaged resources used by the XViewLight control.

EndInit()

Signals the object that initialization is complete.

EndUpdate()

Restores painting after long update operations.

GetPreferredSize(Size)
OnBackgroundImageChanged(EventArgs)

Raises the BackgroundImageChanged event.

OnBackgroundImageLayoutChanged(EventArgs)

Raises the BackgroundImageLayoutChanged event.

OnDpiChangedAfterParent(EventArgs)
OnItemClick(NavItemClickEventArgs)

Rises the ItemClick event.

OnItemClicked(NavItemClickedEventArgs)

Rises the ItemClicked event.

OnPositionChanged(EventArgs)

Rises the RecordPositionChanged event.

OnRecordChanged(ItemChangedEventArgs)

Rises the RecordChanged event.

OnRecordListChanged(ListChangedEventArgs)

Rises the RecordListChanged event.

OnResize(EventArgs)
ProcessDialogKey(Keys)
RefreshDataSource()

Forces a repopulation of the data-bound list.

RescaleConstantsForDpi(int, int)

Provides constants for rescaling the control when a DPI change occurs.

ResetItems()

Restores the default value of the Items property.

ResetStyles()

Restores the default value of the Styles property.

ShouldSerializeItems()

Specifies whether to save the value of the Items property.

ShouldSerializeStyles()

Specifies whether to save the value of the Styles property.

ShowAboutBox()

Shows the About Box for an instance of C1DbNavigator.

Events

Name Description
ItemClick

Occurs when the NavItem is about to click.

ItemClicked

Occurs when the NavItem is clicked.

RecordChanged

Occurs when the current record has been modified, some of its fields changed.

RecordListChanged

Occurs when the record list changes or an record in the list changes.

RecordPositionChanged

Occurs when the RecordPosition has changed.