This example shows how to change a default or user-defined dasard parameter value in the DasardControl.CustomParameters
event handler. The effective parameter value is hidden from users. Set the Visible
property to false
to hide the parameter from the Dasard Parameters dialog.
In this example, the parameterState dasard parameter with static look-up settings is added to the dasard. This dasard parameter is used to filter the data source. The Dasard Parameters dialog displays the values and enables users to select a parameter value from the list. In the DasardControl.CustomParameters
event handler, we can change the value supplied by the user before it is passed to the query. In the result, the value defined in the DasardControl.CustomParameters
event is in effect.
- MyViewModel.cs (VB: MyViewModel.vb)
- MyDasardView.xaml.cs (VB: MyDasardView.xaml.vb)
- MyDasardView.xaml (VB: MyDasardView.xaml)
(you will be redirected to DevExpress.com to submit your response)