How to bind datatable to datagrid using {Binding}?

I found an example on www.codescratcher.combut there's an example without the {Binding}. How this can be done with {Binding}?
July 9th 19 at 10:48
1 answer
July 9th 19 at 10:50
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
 dt = new DataTable();
da.Fill(dt);
 gvData.ItemsSource = dt.AsDataView();


what is not clear?
Me the example is clear. Just there this method to update table is called after every change. But {Binding} like to do. - verna.Adams commented on July 9th 19 at 10:53
Yeah, bad question read.
And if you remove the update ,after removing and adding, the table will visually change?
I see that AsDataView returns an object that implements ibindinglist - mercedes commented on July 9th 19 at 10:56
Myself,the answer is no, so how is an independent request. - mercedes commented on July 9th 19 at 10:59
If this is the cause, dt.Rows.RemoveAt(); it will not be necessary is likely to make re-bind - mercedes commented on July 9th 19 at 11:02
In General it can look.
www.c-sharpcorner.com/uploadfile/mahesh/updating-t...
Like this. How correctly - I don't know, plus everything happens in the GUI thread, as actually before. - mercedes commented on July 9th 19 at 11:05

Find more questions by tags C#Microsoft AccessSQL ServerWPFSQL