Click or drag to resize

DbDataSource Class

X#
This class implements an IBindingList on a workarea
Inheritance Hierarchy
Object
  DbDataSource

Namespace:  XSharp
Assembly:  XSharp.Data (in XSharp.Data.dll) Version: 2.19
Syntax
 CLASS DbDataSource IMPLEMENTS IBindingList, 
	IList, ICollection, IEnumerable
Request Example View Source

The DbDataSource type exposes the following members.

Constructors
  NameDescription
Public methodDbDataSource
Initializes a new instance of the DbDataSource class
Top
Properties
  NameDescription
Public propertyAllowEdit
TRUE when the workarea is not readonly
Public propertyAllowNew
TRUE when the workarea is not readonly
Public propertyAllowRemove
TRUE when the workarea is not readonly
Public propertyCount
Returns the # of records in the RDD
Public propertyEoF
Is underlying workarea at EOF
Public propertyFullName
File name of underlying workarea
Public propertyIsFixedSize
Gets a value indicating whether the IList has a fixed size.
Public propertyIsReadOnly
TRUE when the workarea is readonly
Public propertyIsSorted
Gets whether the items in the list are sorted.
Public propertyItem
Retrieve the DbRecordObject for the record at the given position
Public propertyName
Alias of underlying workarea
Public propertyRecNo
Recordnumber in underlying workarea
Public propertyShowDeleted
Should the Deleted Flag be included as "virtual column"
Public propertyShowRecno
Should the Record number be included as "virtual column"
Public propertySortDirection
Gets the direction of the sort.
Public propertySortProperty
Gets the PropertyDescriptor that is being used for sorting.
Public propertySupportsChangeNotification
Gets whether a ListChanged event is raised when the list changes or an item in the list changes.
Public propertySupportsSearching
Gets whether the list supports searching using the Find(PropertyDescriptor, Object) method.
Public propertySupportsSorting
Gets whether the list supports sorting.
Top
Methods
  NameDescription
Public methodAdd
This required method has not been implemented.
Public methodAddIndex
Adds the PropertyDescriptor to the indexes used for searching.
Public methodAddNew
Adds a new item to the list.
Public methodApplySort
Sorts the list based on a PropertyDescriptor and a ListSortDirection.
Public methodClear
Removes all items from the IList.
Public methodContains
Determines whether the IList contains a specific value.
Public methodCopyTo
This required method has not (yet) been implemented
Public methodFind
This required method has not (yet) been implemented
Public methodGetEnumerator
Returns an enumerator with which you can walk the RDD.
Public methodIndexOf
Determines the index of a specific item in the IList.
Public methodInsert
This required method has not been implemented.
Public methodRemove
Removes the first occurrence of a specific object from the IList.
Public methodRemoveAt
Removes the IList item at the specified index.
Public methodRemoveIndex
This required method has not (yet) been implemented
Public methodRemoveSort
Removes any sort applied using ApplySort(PropertyDescriptor, ListSortDirection).
Top
Events
  NameDescription
Public eventListChanged
Occurs when the list changes or an item in the list changes.
Top
Remarks
The class can be used TO directly bind a workarea to a data aware .Net control, such as a DataGridView Each row in the List represents a record in the workarea. Records are represented by DbRecord objects Each record
See Also