Version

DataSourceAdapter Class Members

The following tables list the members exposed by DataSourceAdapter.

Public Properties
 NameDescription
Public PropertyCustomBindingReturns a boolean for whether custom binding is occuring  
Public PropertyDelayFilteringReturns a boolean for whether application of the RowFilter on the collection should be delayed or not  
Public PropertyDelaySortDelays sorting, this is meant to be used for UnboundFields and this property helps tp delay the sorting until all the unbound values has been provided  
Public PropertyDeleteParametersA ParameterCollection used for deletes  
Public PropertyEnableDataSummarizationReturns a boolean for whether summaries should be calculated for this control  
Public PropertyEnableSummariesFilterGets/sets a value that if true, summaries are calculated only on the filtered data  
Public PropertyFilterRecordFilterRecord representing the filtering to be done on the source  
Public PropertyHasSummaryFieldsIndicates whether a field has been added to summary calculations.  
Public PropertyInsertParametersA ParameterCollection used for inserts  
Public PropertyOldValuesParameterFormatStringReturns a string used to format old values  
Public PropertyOwnerViewKeeps reference to the owner DataSourceObjectView object.  
Public PropertyPrimaryKeyImplements primary key fields.  
Public PropertyRecordsImplements the Records property. Keeps a reference to the records collection of the data source.  
Public PropertyRequireFilterableCollectionReturns a boolean for whether the Records collection should be created as a FilterableRecordsCollection  
Public PropertyRequireSortableCollectionReturns a boolean for whether the Records collection should be created as a SortableRecordsCollection  
Public PropertyRowFilterFilter expression.  
Public PropertySchemaImplements the Schema property. Keeps a reference to the schema of the data source.  
Public PropertySourceReference to the original data source. In the setter of the property the data source is evaluated and the Schema and Records collections are initialized.  
Public PropertyUnboundFieldsReturns a DataFieldCollection representing any UnboundFields on this control  
Public PropertyUnboundValuesReturns a Hashtable of unbound values. The keys are datakey. The values are string/object Dictionary.  
Public PropertyUniqueDataValues  
Public PropertyUpdateParametersA ParameterCollection used for updates  
Protected Properties
 NameDescription
Protected PropertyIsEnumerableITypeList  
Protected PropertyViewStateA state bag for the ViewState  
Public Methods
 NameDescription
Public MethodAddSummaryFieldAdds a field to summary calculations.  
Public MethodDataFieldFromNameReturns a DataField from the schema or the UnboundFields if not found in the schema. null if not in either collection  
Public MethodDeleteDeletes records from the source  
Public MethodGetRecordCountProvides the number of records in the data source. This is the total number of records in the data source.  
Public MethodGetRecordViewCountProvides the number of records that are currently requested. This number takes into account paged data.  
Public MethodGetValueReturns a value out of the given record for the given field  
Public MethodInsertInserts the given values as a new record  
Public MethodSaveExtraViewStateForRecordSaves any extra information int the view state for a DataRecord  
Public MethodSelect  
Public MethodSetValueSets a value in the given record for the given field  
Public MethodSortIf the DataAdapter is using SortableRecordsCollection and there are Records then this method will sort them.  
Public MethodUpdateUpdates the given data item  
Protected Methods
 NameDescription
Protected MethodCreateFilterRecordCreates a FilterRecord based upon the row filter  
Protected MethodCreateRecordsCreates the Records collection for this source  
Protected MethodInitRecordCountInitializes the record count with the given value  
Protected MethodInitRecordsCalled from within the Select method to initialize the records.  
Protected MethodInitSchemaFromBindingListInitializes schema from a binding list  
Protected MethodInitSchemaFromEnumerableInitializes schema from a binding list  
Protected MethodLoadViewStateLoad data modified at run time.  
Protected MethodSaveViewStateSave data modified at run time.  
Protected MethodSetRecordsSets the records collection to the one given  
Protected MethodTrackViewStateEnables view state tracking for underlying objects.  
See Also