or
The grid is 2009 Q2.
Grid.ItemSource = dataTable.
private
void btnAdd_Click(object sender, RoutedEventArgs e)
{
Grid.BeginInsert();
}
Is it because the dataTable has a few primary keys?
How do I resolve this?
Thanks

| public IEnumerable GetSelectedRecords |
| { |
| get |
| { |
| List<object> selectedRecords = new List<object>(); |
| IList<GridViewRow> rows = EmployeeGridView.ChildrenOfType<GridViewRow>(); |
| int index = 0; |
| foreach (GridViewRow row in rows) |
| { |
| if (!(row is GridViewNewRow) && !(row is GridViewHeaderRow)) |
| { |
| CheckBox checkBox = row.Cells[0].ChildrenOfType<CheckBox>().FirstOrDefault(); |
| if (checkBox != null && checkBox.IsChecked == true) |
| { |
| selectedRecords.Add(row.Item); |
| } |
| } |
and rows above contained all records in the Grid. Now with Q3 it contains only visible rows. Can this behaviour be overridden in some way ? Or is there a new way to do the same operation ?
Thanks and regards,
Ivan