Private isManualEditCommit As Boolean = False Private Sub DG_CellEditEnding(ByVal sender As Object, ByVal e As System.Windows.Controls.DataGridCellEditEndingEventArgs) Handles DG.CellEditEnding If Not isManualEditCommit Then isManualEditCommit = True DG.CommitEdit(DataGridEditingUnit.Row, True) isManualEditCommit = False End If End Sub
沒有留言:
張貼留言