george.zakaryan
george.zakaryan

Reputation: 980

How to add SortDescriptor to GridViewDataColumn's parent RadGridView

I'm extending GridViewDataColumn and I want to implement some custom sorting for it. So I need to add SortDesccriptor to the parent RadGridView of my GridViewDataColumn. There's not much documentation and the sources are not available. How can I get the column's parent GridView so that I can add SortDescriptors to it?

I'm using RadControls for Silverlight.

Upvotes: 0

Views: 247

Answers (1)

Andrew
Andrew

Reputation: 835

So, you have an instance of a GridViewDataColumn and you want to get the parent RadGridView? Does the following not work?

public RadGridView GetGridView() 
{
    return this.DataControl as RadGridView;
}

Upvotes: 1

Related Questions