New to Telerik UI for WPF? Download free 30-day trial

Resetting the Capacity

Inserting and removing rows or columns does not affect the InitialRowCount or InitialColumnCount properties. Thus, RadVirtualGrid supports resetting its capacity to the values that are initially set for them. This can be achieved through the Reset method and its two overloads:

  • Reset(): Resets the capacity of the control to the values of the InitialRowCount and InitialColumnCount properties.

  • Reset(int rowCount, int columnCount): Through this overload of the Reset method, the capacity of RadVirtualGrid can be reset to values different from the ones initially set to the InitialRowCount and InitialColumnCount properties. Furthermore, the two properties will be updated accordingly.

See also

In this article