Hello,
I have a GridView with some rows colored and some not. I would like to display the color rows on top and the none color rows on the bottom. Is there a way I can Sort by color?
It is possible to sort the RadGridView by Color property. It is necessary to use Color.Empty value for none color cells. Thus when sorting (ascending), the empty value is on the bottom:
public ColorItem(int iD, Color color, string description)
{
this.ID = iD;
this.Color = color;
this.Description = description;
}
}
If it is necessary to use some custom logic when sorting, you may use Custom Sorting. More information about it can be found in the referred help article.
I hope this information helps. Should you have further questions, I would be glad to help.
Regards,
Desislava
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely. Sign up for Free application insights >>