• Forcing AddNewRow Cell to Activate And EnterEditMode

    Unfortunately this code took me the better part of a day to get right (and clean)  I figured I would share it with the community.  the GetDependencyObject method can obviously be used to traverse any dependency object.  Enjoy.

    object CellControl = new object();
    GetDependencyObject(OccurrenceGrid, typeof(AddNewRowSelectorCellControl), ref CellControl);
    RowBase Base = (CellControl as AddNewRowSelectorCellControl).Cell.Row;…

    • Mon, Oct 19 2009