or

| public interface ICustomObservableCollection<T> : ICollection<T>, INotifyCollectionChanged, INotifyPropertyChanged |
| where T : EntityBase2, IEntity2 |
| { } |
| public class CustomObservableCollection<T> : ICustomObservableCollection<T> |
| where T : EntityBase2, IEntity2 |
| {} |
| foreach (GridViewRowItem griParent in RadGridView1.ChildrenOfType<GridViewRowItem>()) |
| { |
| if (griParent.DataItem != null) |
| { |
| if ((griParent.DataItem as DataRowView).Row["ActivityName"].ToString().Contains(sSearch)) |
| { |
| gvriParent.Add(griParent); |
| } |
| } |
| } |
| .......... |
| if (iParentSearch < gvriParent.Count) |
| { |
| if ((gvriParent[iParentSearch] as GridViewExpandableRow) == null && ((gvriParent[iParentSearch].ParentOfType<GridViewExpandableRow>()))!=null) |
| { |
| ((gvriParent[iParentSearch].ParentOfType<GridViewExpandableRow>())).IsExpanded = true; |
| } |
| gvriParent[iParentSearch].IsSelected = true; |
| this.RadGridView1.BringDataItemIntoView(gvriParent[iParentSearch]); |
| iParentSearch++; |
| } |
| ...... |