Skip to content

Instantly share code, notes, and snippets.

@kaskavalci
Created September 26, 2015 10:27
Show Gist options
  • Save kaskavalci/1b79b826026c10ee123b to your computer and use it in GitHub Desktop.
Save kaskavalci/1b79b826026c10ee123b to your computer and use it in GitHub Desktop.
void addNewRow(DataView dataView)
{
DataRowView newRow = dataView.AddNew();
newRow["Column Name"] = "Column Value";
newRow.EndEdit();
comboBoxViews.ItemsSource = dataView.Cast<DataRowView>().Select(o => o["Column Name"]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment