DhObjectFactory | +--DhObjectDataSource | +--DhRemoteDataSourcepublic class DhRemoteDataSource
Encapsulates the Microsoft Remote Data Service (formerly ADC) control, which allows access to database information across an HTTP connection.
Constructors
Name | Description |
---|---|
DhRemoteDataSource() | Creates a DhRemoteDataSource object. |
DhRemoteDataSource( String strConnection, String strServer, String strSQL ) | Creates a DhRemoteDataSource object. |
Methods
Name | Description |
---|---|
cancel() | Cancels the current data-retrieval operation. |
getConnectionString( ) | Retrieves the current connection string (for example, "DSN=AdvWorks;") for this data source object. |
getServer( ) | Retrieves the currently set server name for this data source object. |
getSortDirection( ) | Retrieves the current sort direction. |
getSortField( ) | Retrieves the name of the currently sorted column. |
getSQL() | Retrieves the currently set SQL query string. |
refresh() | Refreshes the data source with new settings, such as a connection string or a SQL query. |
setConnectionString( String strConn ) | Sets the connection string (for example, "DSN=AdvWorks;") for this data source object. |
setServer( String strServer ) | Sets the HTTP server to query for database information. |
setSortDirection( boolean fAscending ) | Sets the sort direction. |
setSortField( String strSortField ) | Sets the field for sorting data. |
setSQL( String strSQL ) | Sets the SQL query for this object and refreshes, if necessary. |
submitChanges() | Gathers and submits any data changes made to bound controls. |
Creates a DhRemoteDataSource object.
Creates a DhRemoteDataSource object. This is a one-step construction with the connection string, server, and SQL query for the connection.
Cancels the current data-retrieval operation.
Returns the current connection string.
Retrieves the current connection string (for example, "DSN=AdvWorks;") for this data source object.
Returns the name of the current server.
Retrieves the currently set server name for this data source object.
Returns true if the sort direction is ascending, or returns false if it is descending.
Retrieves the current sort direction.
Returns the currently sorted column name.
Retrieves the name of the currently sorted column.
Returns the query String.
Retrieves the currently set SQL query string.
Refreshes the data source with new settings, such as a connection string or a SQL query.
Sets the connection string (for example, "DSN=AdvWorks;") for this data source object.
Sets the HTTP server to query for database information.
Sets the sort direction.
Sets the field for sorting data.
Sets the SQL query for this object and refreshes, if necessary.
Gathers and submits any data changes made to bound controls.