This is a migrated thread and some comments may be shown as answers.

How to unpin all current rows?

1 Answer 99 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sami Aljafar
Top achievements
Rank 1
Sami Aljafar asked on 05 Aug 2010, 11:20 AM
Hello,

Please how can i unpin all currently pinned gridview rows?

1 Answer, 1 is accepted

Sort by
0
Svett
Telerik team
answered on 09 Aug 2010, 05:52 PM
Hello Sami Aljafar,

You can simply iterate from the end to the beginning of pinned rows collection and unpin each row:

for (int i = this.radGridView1.MasterGridViewInfo.PinnedRows.Count - 1; i >= 0; i--)
{
    this.radGridView1.MasterGridViewInfo.PinnedRows[i].PinPosition = PinnedRowPosition.None;
}

Notice that the code above unpin the columns of the master view. If you want to unpin the rows in hierarchy you have to do it for each view.

Regards,
Svett
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Sami Aljafar
Top achievements
Rank 1
Answers by
Svett
Telerik team
Share this question
or