Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to handle GridControl's events by using the EventToCommand extension

$
0
0

MVVM Framework provides the EventToCommand class that allows delegating event processing logic to the ViewModel level. This example illustrates how to use this functionality to process DXGrid events.

The EventToCommand class provides the PassEventArgsToCommand option that allows passing the corresponding EventArgs as a command parameter. If necessary, you can extract the required information from event arguments and then pass this information as a command parameter. To do this, use the EventArgsConverter.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>