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

How to provide an event that is raised on changing a grid layout

$
0
0

This example demonstrates how to provide an event that is raised as soon as a grid layout is changed.


In this example, we have created a GridLayoutHelper class that handles changes of the GridControl object's necessary properties and columns, and raises a custom event in its handlers.


This class can be easily attached to the GridControl object in the following manner:

[XAML]
<dxg:GridControlx:Name="grid"AutoPopulateColumns="True"><dxmvvm:Interaction.Behaviors><local:GridLayoutHelperLayoutChanged="OnGridLayoutChanged"/></dxmvvm:Interaction.Behaviors></dxg:GridControl>

 

To learn more on how to implement similar functionality in WPF, refer to the E4609 example.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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