Hi all,
I've a RadGrid with one detailTable level.
My goal is to when editing one row in the detailTable, the other rows (not selected) should disappear,
as well as the only visible row in the Main Grid should be the parent row (wich is actually expanded)
I tryed the code below but it's not working.
| foreach (GridDataItem dataItem in RadGrid1.Items) |
| { |
| if (RadGrid1.EditItems.Count > 0) |
| { |
| if (!dataItem.Expanded) |
| { |
| dataItem.Visible = false; |
| } |
| else |
| { |
| foreach (GridDataItem item in RadGrid1.MasterTableView.Items[0].ChildItem.NestedTableViews[0].Items) |
| { |
| if (item != RadGrid1.EditItems[0]) |
| { |
| item.Visible = false; |
| } |
| } |
| } |
| } |
| } |
Any help is very appreciated.
Nuno Sénica.