Is there something like [Data Source Update Mode =? OnPropertyChanged] in DataGrid or DataGridView?

from:
http://www.devexpress.com/Support/Center/p/Q293828.aspx

Is there something like [Data Source Update Mode =? OnPropertyChanged] in DataGrid or DataGridView?
 
 Hi,
 
I can set on devexpress editors the DataSourceUpdateMode=OnPropertyChanged...but I need do the same for DataGrid or DataGrid view....do you know how can I do it?
 
Regards,
Cristhiam
 
Hi Cristhiam,

In this situation, please try this approach:

[VB.NET]
Sub OnGridViewShownEditor(ByVal sender As Object, ByVal e As EventArgs) Handles GridView1.ShownEditor
    AddHandler CType(sender, GridView).ActiveEditor.EditValueChanged, AddressOf
OnActiveEditorEditValueChanged
End Sub

Sub OnActiveEditorEditValueChanged(ByVal sender As Object, ByVal e As EventArgs)
    GridView1.PostEditor()
End Sub

Thanks,
Uriah.

你可能感兴趣的:(Is there something like [Data Source Update Mode =? OnPropertyChanged] in DataGrid or DataGridView?)