点击或拖拽改变大小

DbDataSource 类

X#
This class implements an IBindingList on a workarea
继承层次
Object
  DbDataSource

命名空间:  XSharp
程序集:  XSharp.Data (在 XSharp.Data.dll 中) 版本:2.22 GA
语法
 CLASS DbDataSource IMPLEMENTS IBindingList, 
	IList, ICollection, IEnumerable
查看代码

DbDataSource 类型公开以下成员。

构造函数
  名称说明
公共方法DbDataSource
初始化 DbDataSource 类的一个新实例
Top
属性
  名称说明
公共属性AllowEdit
TRUE when the workarea is not readonly
公共属性AllowNew
TRUE when the workarea is not readonly
公共属性AllowRemove
TRUE when the workarea is not readonly
公共属性Count
Returns the # of records in the RDD
公共属性EoF
Is underlying workarea at EOF
公共属性FullName
File name of underlying workarea
公共属性IsFixedSize
Gets a value indicating whether the IList has a fixed size.
公共属性IsReadOnly
TRUE when the workarea is readonly
公共属性IsSorted
Gets whether the items in the list are sorted.
公共属性Item
Retrieve the DbRecordObject for the record at the given position
公共属性Name
Alias of underlying workarea
公共属性RecNo
Recordnumber in underlying workarea
公共属性ShowDeleted
Should the Deleted Flag be included as "virtual column"
公共属性ShowRecno
Should the Record number be included as "virtual column"
公共属性SortDirection
Gets the direction of the sort.
公共属性SortProperty
Gets the PropertyDescriptor that is being used for sorting.
公共属性SupportsChangeNotification
Gets whether a ListChanged event is raised when the list changes or an item in the list changes.
公共属性SupportsSearching
Gets whether the list supports searching using the Find(PropertyDescriptor, Object) method.
公共属性SupportsSorting
Gets whether the list supports sorting.
Top
方法
  名称说明
公共方法Add
This required method has not been implemented.
公共方法AddIndex
Adds the PropertyDescriptor to the indexes used for searching.
公共方法AddNew
Adds a new item to the list.
公共方法ApplySort
Sorts the list based on a PropertyDescriptor and a ListSortDirection.
公共方法Clear
Removes all items from the IList.
公共方法Contains
Determines whether the IList contains a specific value.
公共方法CopyTo
This required method has not (yet) been implemented
公共方法Find
This required method has not (yet) been implemented
公共方法GetEnumerator
Returns an enumerator with which you can walk the RDD.
公共方法IndexOf
Determines the index of a specific item in the IList.
公共方法Insert
This required method has not been implemented.
公共方法Remove
Removes the first occurrence of a specific object from the IList.
公共方法RemoveAt
Removes the IList item at the specified index.
公共方法RemoveIndex
This required method has not (yet) been implemented
公共方法RemoveSort
Removes any sort applied using ApplySort(PropertyDescriptor, ListSortDirection).
Top
事件
  名称说明
公共事件ListChanged
Occurs when the list changes or an item in the list changes.
Top
备注
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
参见