When adding a new row (in line editing), the GridViewNewRowInfo.DataBoundItem is null even though it is bound to the underlying object.
Here's my situation: I'm binding a BindingList of objects to the grid's data source. I'm implementing an MVP pattern where the Presenter listens to the binding list's AddingNew event and initializes the new object. Prior to Q1 2008 beta, the initialization made in AddingNew was not reflected in the grid's new row (this seems to be fixed in Q1 08 beta).
I am also implementing cascading combo boxes (Country selection drives items in the State column). The Presenter listens to ListChanged events and computes the available States when the object's Country changes. The filtered list of States is added to the object (presentation model). In RadGridView.CellBeginEdit, the view modifies the RadComboBoxEditor, reseting the State list source to the new filtered list in the presentation model. This works for existing rows, but breaks for new rows since the new row's DataBoundItem is null.
Here's my situation: I'm binding a BindingList of objects to the grid's data source. I'm implementing an MVP pattern where the Presenter listens to the binding list's AddingNew event and initializes the new object. Prior to Q1 2008 beta, the initialization made in AddingNew was not reflected in the grid's new row (this seems to be fixed in Q1 08 beta).
I am also implementing cascading combo boxes (Country selection drives items in the State column). The Presenter listens to ListChanged events and computes the available States when the object's Country changes. The filtered list of States is added to the object (presentation model). In RadGridView.CellBeginEdit, the view modifies the RadComboBoxEditor, reseting the State list source to the new filtered list in the presentation model. This works for existing rows, but breaks for new rows since the new row's DataBoundItem is null.