public bool UnregisterSyncScrollGrid(string key, FastGridControl grid) { List <FastGridControl> grids; if (!syncScrollGroups.TryGetValue(key, out grids)) { return(grids.Remove(grid)); } return(false); }
public static bool RegisterSyncScrollGrid(string key, FastGridControl grid) { List <FastGridControl> grids; if (syncScrollGroups.TryGetValue(key, out grids)) { if (!grids.Contains(grid)) { grids.Add(grid); return(true); } } else { syncScrollGroups.Add(key, new List <FastGridControl> { grid }); return(true); } return(false); }
internal InvalidationContext(FastGridControl grid) { _grid = grid; _grid.EnterInvalidation(); }