DataTable _MyTable; _MyTable.PrimaryKey = new DataColumn[] { _MyTable.Columns["Id"] }; ((DataView)dgListing.ItemsSource).ToTable().Merge(_MyTable); ((DataView)dgListing.ItemsSource).ToTable().AcceptChanges(); dgListing.Items.Refresh();
dt.PrimaryKey = new DataColumn[] { dt.Columns["Id"] }; dgListing.ItemsSource = dt.DefaultView;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)