Skip to content

DevExpress-Examples/wpf-data-grid-create-event-raised-on-layout-changes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF Data Grid - Create an Event Raised on Layout Changes

This example demonstrates how to create an event that is raised when a user changes the GridControl's layout.

image

In this example, the GridLayoutHelper class handles changes of the GridControl and GridColumn layout properties and raises a custom event. The event's handler logs layout changes in the Output window:

image

The following code sample demonstrates how to attach the GridLayoutHelper class to the GridControl:

<dxg:GridControl x:Name="grid" AutoGenerateColumns="AddNew">
    <dxmvvm:Interaction.Behaviors>
	<local:GridLayoutHelper LayoutChanged="GridLayoutHelper_Trigger"/>
    </dxmvvm:Interaction.Behaviors>
</dxg:GridControl>

Files to Look At

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Create an event that is raised when a user changes the GridControl's layout.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •