Esempio n. 1
0
 public void SaveExpandedMasterRows(GridView view)
 {
     if (view.GridControl.Views.Count == 1)
     {
         return;
     }
     SaveMasterRowsList.Clear();
     for (int i = 0; i < view.DataRowCount; i++)
     {
         if (view.GetMasterRowExpanded(i))
         {
             object key = view.GetRowCellValue(i, descriptor.keyFieldName);
             SaveMasterRowsList.Add(key);
             GridView detail = view.GetVisibleDetailView(i) as GridView;
             if (detail != null)
             {
                 ViewState state = ViewState.Create(this, detail);
                 if (state != null)
                 {
                     DetailViews.Add(key, state);
                     state.SaveState(detail);
                 }
             }
         }
     }
 }
Esempio n. 2
0
 public void SaveViewInfo(GridView view)
 {
     root = ViewState.Create(this, view);
     root.SaveState(view);
 }
Esempio n. 3
0
 public void SaveViewInfo(GridView view)
 {
     root = ViewState.Create(this, view);
     root.SaveState(view);
 }