Ejemplo n.º 1
0
 /// <summary>
 /// After removing or inserting a row, ensure that the cached indexes (used for layout) match up
 /// with the item index in the list
 /// </summary>
 protected void RefreshIndexCache()
 {
     for (var i = 0; i < _visibleRows.Count; i++)
     {
         _visibleRows[i].Index = _itemList.IndexOf(_visibleRows[i].Data);
     }
 }