Home Forums WPF controls Xceed DataGrid for WPF Bind to DataTable

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #24552 |

    hi, i am new here. i have a DataTable. the DefaultView of it is bound to a DataGridCollectionView which is source of the DataGrid. How do i get changes back to the DataTable and from this back into the datasource which is an oracle database?

    Code:

    DataTable dt = dataCon.LoadTable(tablename);
    DataGridCollectionView view = new DataGridCollectionView(dt.DefaultView); grid.ItemsSource = view;

    Thanks. k.

    Imported from legacy forums. Posted by noname (had 517 views)

    User (Old forums)
    Member
    Post count: 23064

    ok, i got it. it works as described above.
    k.

    Imported from legacy forums. Posted by noname (had 2701 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.