public void Dispose()
 {
     cellService.CurrentCellChanged     -= new EventHandler(cellService_CurrentCellChanged);
     dataGrid.ColumnDisplayIndexChanged -= new EventHandler <DataGridColumnEventArgs>(dataGrid_ColumnDisplayIndexChanged);
     this.dataGrid    = null;
     this.cellService = null;
 }
 public ColumnReorderingHandler(DataGrid dataGrid, DataGridCurrentCellService cellService)
 {
     this.dataGrid    = dataGrid;
     this.cellService = cellService;
     cellService.CurrentCellChanged     += new EventHandler(cellService_CurrentCellChanged);
     dataGrid.ColumnDisplayIndexChanged += new EventHandler <DataGridColumnEventArgs>(dataGrid_ColumnDisplayIndexChanged);
 }