NewRowPlaceholder stops working when row save is forced by cell change

Apr 16, 2009 at 8:47 PM
Edited Apr 16, 2009 at 8:51 PM
my code to update comes from http://www.scottlogic.co.uk/blog/wpf/2009/01/wpf-datagrid-committing-changes-cell-by-cell/

 Private RowBeingEdited As DataRowView

 

Private 

 

Sub dgRevenue_CellEditEnding(ByVal sender As Object, ByVal e As Microsoft.Windows.Controls.DataGridCellEditEndingEventArgs) Handles dgRevenue.CellEditEnding

    RowBeingEdited = e.Row.Item

End
Sub
 
Private Sub dgRevenue_CurrentCellChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles dgRevenue.CurrentCellChanged

 

 

 

 

 

    If

 

Not RowBeingEdited Is Nothing Then

 

 

 

 

 

        RowBeingEdited.EndEdit()

    End If

End Sub

Without the EndEdit Call my grid has placeholders as expected

if it matters my grid is bound to a DataTable via an ObjectDataProvider

I dont see any call to make the placeholder manually.   How can I do this?

 

 PS I cant seem to fix the formatting of this post
Why is it inconsistent with pasting color
 And it inserted a ton of extra line feeds I didnt type