smartDBforms.NET API Reference

SmartDBView Members

SmartDBView overview

Public Instance Constructors

SmartDBView Constructor Initializes a new instance of the SmartDBView class.

Public Instance Properties

Content The content of SmartDBView. This template holds all contained controls of SmartDBView.
ContentEdit The content of SmartDBView when in Edit mode . This template holds all contained controls of SmartDBView. If this template is empty then the Content template is used.
ContentInsert The content of SmartDBView when in Insert mode . This template holds all contained controls of SmartDBView. If this template is empty then the Content template is used.
ContentReadOnly The content of SmartDBView when in ReadOnly mode. This template holds all contained controls of SmartDBView. If this template is empty then the Content template is used.
CurrentMode Gets the current mode of SmartDBView
DefaultMode Gets or sets the data-entry mode to which the SmartDBView control returns after an update, insert, or cancel operation. The default value is Edit
EmptyDataTemplate The content that is used when the data source returns no data. This template is used when the OnEmptyData property is set to InsertMode. It appears instead of the Content template
IsDefaultMode Returns true if the current mode is the same as DefaultMode.
IsEditMode Returns true if the current mode is Edit.
IsEditOrInsertMode Returns true if the current mode is the Edit ReadOnly or Insert.
IsInsertMode Returns true if the current mode is Insert.
IsNotDefaultMode Returns true if the current mode is different from DefaultMode.
IsReadOnlyMode Returns true if the current mode is ReadOnly.
IsReadOnlyOrEditMode Returns true if the current mode is the ReadOnly ReadOnly or Edit.
OnEmptyData Gets or sets a value that indicates the behaviour when the data source returns no records and the CurrentMode is not Insert. The default values is InsertMode.
PrimaryKeyValues Gets a dictionary of name/value pairs, that contains the primary key values as were stored during data binding.
RowIndex Get or sets the index of the data record to use. The default value is 0.
Note    Changing this property causes data binding of SmartDBView
RowsCount Gets the number of records in the data source that was used for data binding.
StoreInitialValues Gets or sets a value that indicates if to store the initial values during data binding. The default values is AskDataSource

Public Instance Methods

ChangeMode Changes the current mode of SmartDBView.
Note    Changing the mode causes data binding of SmartDBView
ChangeModeToInsert Changes the current mode of SmartDBView to Insert.
DoDelete Initiates the delete operation in the same way as if the delete button was pressed.
DoInsert Initiates the insert operation in the same way as if the insert button was pressed.
DoUpdate Initiates the update operation in the same way as if the update button was pressed.
ExtractCurrentValues Gets a dictionary that contains name/value pairs that are extracted from the user interface.
SetFirstRowIndex Helper method. Changes RowIndex to the first record.
SetLastRowIndex Helper method. Changes RowIndex to the last record.
SetNextRowIndex Helper method. Changes RowIndex to the next record.
SetPreviousRowIndex Helper method. Changes RowIndex to the previous record.

Public Instance Events

DataBindingChildren Occurs after DataItem has been prepared and just before the child controls being databound.
ItemCommand Occurs when a button within a SmartDBView control is clicked.
ItemDeleted Occurs after the delete operation has finished.
ItemDeleting Occurs before the delete operation has started.
ItemInserted Occurs after the insert operation has finished.
ItemInserting Occurs before the insert operation has started.
ItemUpdated Occurs after the update operation has finished.
ItemUpdating Occurs before the update operation has started.
ModeChanged Occurs after the current mode has been changed.
ModeChanging Occurs when the current mode is being changed, but before the mode changes.
SelectError Occurs when an exception occurs during the select operation.
ValuesExtracted Occurs after the values have been extracted. This happens during update and during insert. Just before ItemUpdating and ItemInserting events.

Protected Instance Methods

OnDataBindingChildren Raises the DataBindingChildren event.
OnItemCommand Raises the ItemCommand event.
OnItemDeleted Raises the ItemDeleted event.
OnItemDeleting Raises the ItemDeleting event.
OnItemInserted Raises the ItemInserted event.
OnItemInserting Raises the ItemInserting event.
OnItemUpdated Raises the ItemUpdated event.
OnItemUpdating Raises the ItemUpdating event.
OnModeChanged Raises the ModeChanged event.
OnModeChanging Raises the ModeChanging event.
OnSelectError Raises the SelectError event.
OnValuesExtracted Raises the ValuesExtracted event.

See Also

SmartDBView Class | Adillis.SmartDBForms Namespace