Пример #1
0
 public void LoadExpandedMasterRows(GridView view)
 {
     //view.BeginUpdate();
     try {
         view.CollapseAllDetails();
         for (int i = 0; i < SaveMasterRowsList.Count; i++)
         {
             int       rowHandle = LocateRowByKeyValue(view, SaveMasterRowsList[i]);
             ViewState state     = (ViewState)DetailViews[SaveMasterRowsList[i]];
             if (state == null)
             {
                 view.SetMasterRowExpanded(rowHandle, true);
             }
             else
             {
                 view.SetMasterRowExpandedEx(rowHandle, view.GetRelationIndex(rowHandle, state.descriptor.relationName), true);
                 GridView detail = view.GetVisibleDetailView(rowHandle) as GridView;
                 if (detail != null)
                 {
                     state.LoadState(detail);
                 }
             }
         }
     }
     finally {
         //view.EndUpdate();
     }
 }
Пример #2
0
 public void LoadViewInfo(GridView view)
 {
     if (root == null || !root.IsLevel(view.LevelName))
     {
         return;
     }
     root.LoadState(view);
 }