In 2009 Q2 we were using following code to iterate through GridRows in order to collect all rows:
| 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
