This question is locked. New answers and comments are not allowed.
I have a gridview with a group defined like so:
This code is executed each time the datacontext changes and the oldvalue is null (groupdescriptors are removed when datacontext is null)
If I add an item to the source a group is formed and the item is placed there. So far so good, but I want the code to expand the newly formed group and select/highlight the newly added item. What's the best approach? I have tried the gridview's grouped event, but that does not fire. I have tried the itemcontainergenerator, but the added grouping row does not seem to fire anything?
Dim
group
As
New
GroupDescriptor
With
{.Member =
"name"
}
group.AggregateFunctions.Add(
New
CountFunction
With
{.ResultFormatString =
"({0:d})"
})
GridView1.GroupDescriptors.Add(_group)
This code is executed each time the datacontext changes and the oldvalue is null (groupdescriptors are removed when datacontext is null)
If I add an item to the source a group is formed and the item is placed there. So far so good, but I want the code to expand the newly formed group and select/highlight the newly added item. What's the best approach? I have tried the gridview's grouped event, but that does not fire. I have tried the itemcontainergenerator, but the added grouping row does not seem to fire anything?