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 Silverlight, refer to the T243422 example.


Viewing all articles
Browse latest Browse all 7205

Latest Images

Trending Articles



Latest Images