New to Telerik UI for WinFormsStart a free 30-day trial

Pinned Rows

Updated over 6 months ago

RadGridView rows can be pinned so that the rows appear anchored to the top or bottom of the grid. To pin a particular row, set the row PinPosition to one of the enumerated options -PinnedRowPosition.Bottom or PinnedRowPosition.Top:

C#
radGridView1.Rows[0].PinPosition = PinnedRowPosition.Bottom;
radGridView1.Rows[4].PinPosition = PinnedRowPosition.Top;

By using this code the IsPinned property automatically gets a value true for the desired row.

Another way of pinning a row is to set directly the IsPinned property of a Rows collection item to True. Please note that doing so will pin the row to the top of RadGridView.

C#
radGridView1.Rows[3].IsPinned = true;

The example below shows pinning all selected rows in the grid:

C#
foreach (GridViewRowInfo row in radGridView1.SelectedRows)
{
    row.PinPosition = PinnedRowPosition.Bottom;
}

RadGridView rows can be pinned so that the rows appear anchored to the top of the grid. To pin a particular row, set the IsPinned property of a Rows collection item to true.

The example below shows pinning rows in the grid.
WinForms RadGridView Pinned Rows

See Also

In this article
See Also
Not finding the help you need?
Contact Support