Esempio n. 1
0
 void LoadRows()
 {
     if (_view != null)
     {
         if (LoadingRows != null)
         {
             LoadingRows(this, EventArgs.Empty);
         }
         using (Rows.DeferNotifications())
         {
             // add all data items
             Rows.Clear();
             CreateBoundRows();
         }
         if (LoadedRows != null)
         {
             LoadedRows(this, EventArgs.Empty);
         }
         // show new data and sorting order
         Invalidate();
     }
 }