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.