This example demonstrates how to use the SqlDataSourceUIHelper class to give the End-User a capability to edit the SqlDataSource component's connection or queries at runtime via wizards.
To execute a connection configuration wizard, call the SqlDataSourceUIHelper.ConfigureConnection method and pass the SqlDataSource
component instance to it.
To execute a query editing wizard, call the SqlDataSourceUIHelper.EditQuery method and pass the SqlDataSource
component's SqlQuery
instance to it.
Note
Refill the SqlDataSource
after its connection or query is edited. Use the SqlDataSource.Fill method for this purpose.
The SqlDataSourceUIHelper class also provides other wizards that can be used to configure the SqlDataSource component. Please refer to the SqlDataSourceUIHelper Members help topic for more information.
(you will be redirected to DevExpress.com to submit your response)