SourceGrid.Grid.GridRows.SetCount C# (CSharp) Method

SetCount() public method

public SetCount ( int value ) : void
value int
return void
            public void SetCount(int value)
            {
                if (Count < value)
                    InsertRange(Count, value - Count);
                else if (Count > value)
                    RemoveRange(value, Count - value);
            }