Edit this page

Pinned Rows and Columns

RadVirtualGrid provides pinning mechanism for both its rows and columns. Through it a given row can be pinned to the top or bottom of the grid. Respectively, a column can be pinned to the left or right side of RadVirtualGrid. Thus, they will not take part in the vertical or horizontal scrolling. This functionality can be controlled through the following methods exposed by the API of the control.

RadVirtualGrid exposes built-in commands for its pinning functionality. More information can be found in the Commands Overview.

  • PinRowTop(int index): Pins a row at a given index on the top.

Example 1: Calling the PinRowTop method

virtualGrid.PinRowTop(1);

Figure 1: RadVirtualGrid with pinned row at the top

RadVirtualGrid with pinned row on the top

  • PinRowBotton(int index): Pins a row at a given index to the bottom.

Example 2: Calling the PinRowBottom method

virtualGrid.PinRowBottom(1);

Figure 2: RadVirtualGrid with pinned row at the bottom

RadVirtualGrid with pinned row at the bottom

  • PinColumnLeft(int index): Pins a column at a given index to the left.

Example 3: Calling the PinColumnLeft method

virtualGrid.PinColumnLeft(1);

Figure 3: RadVirtualGrid with pinned column on the left

 RadVirtualGrid with pinned column on the left

  • PinColumnRight(int index): Pins a column at a given index to the right.

Example 4: Calling the PinColumnRight method

virtualGrid.PinColumnRight(1);

Figure 4: RadVirtualGrid with pinned column on the right

RadVirtualGrid with pinned column on the right

Unpinning an already pinned row or column can be achieved through the UnpinRow and UnpinColumn methods:

  • UnpinRow(int index): Unpins a row at a given index.

  • UnpinColumn(int index): Unpins a column at a given index.

See also