This project has moved and is read-only. For the latest updates, please go here.
An extension method provides some additional events that are useful when interacting with the columns of the data grid. The event provider watches for changes on any column and provides an event on the data grid level:

void Initialize(DataGrid dataGrid)
{
  var dataGridEvents= dataGrid.GetAdditionalEvents();
  dataGridEvents.ColumnVisibilityChanged += DataGrid_ColumnVisibilityChanged;
  dataGridEvents.ColumnActualWidthChanged += DataGrid_ColumnActualWidthChanged;
  dataGridEvents.ColumnDisplayIndexChanged += DataGrid_ColumnDisplayIndexChanged;

Now you will receive an event whenever the visibility, actual width or the display index of any column changes.

Last edited Nov 8, 2014 at 6:03 PM by tomenglert, version 2

Comments

No comments yet.