This example shows how to bind a dasard to a Microsoft SQL Server database file (*.mdf).
The dasard and the data source are created at runtime. The dasard data source is an instance of the DasardSqlDataSource object with a SelectQuery to retrieve data. The data source is added to the Dasard.DataSources collection. The data source connection parameters are not specified at this time.
The dasard is assigned to the DasardControl.DasardSource property in the Window_Loaded
event handler.
Before loading data, the dasard control fires the DasardControl.ConfigureDataConnection event. A connection string for the NorthWind database file is assigned to the CustomStringConnectionParameters.ConnectionString property accessible with the e.ConnectionParameters property. Note that the property returns an object of the base class - you should cast it to the CustomStringConnectionParameters
type.
Subsequently the data source is filled with data automatically, and the dasard displays the data.
(you will be redirected to DevExpress.com to submit your response)