Hi
I am trying to simulate the ordering of "details view" on windows explorer (Vista). That is, all the folders are grouped together.
I have the name, date, type, size columns and a "isfile" which is not shown, although one could use the fact that size is string.empty. Anyhow, I have been trying with SortExpressions but to no avail. Take a look at my tests.
private void radGridView_SortChanged(object sender, GridViewCollectionChangedEventArgs e)
{
if (e.GridViewTemplate.SortExpressions.Count > 0) // clear does trigger sortchanged
{
if (e.GridViewTemplate.SortExpressions.IndexOf("IsFile") == -1) // already added?
{
e.GridViewTemplate.SortExpressions.Insert(0, new GridSortField("IsFile", e.GridViewTemplate.SortExpressions[0].SortOrder)); // force it to be the most important expression
}
}
}
Any ideas?
Thanks
-jorge
VS2005, 2008Q3 1204