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

How I can delete a Group descriptor Programmatically

2 Answers 90 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Fernando
Top achievements
Rank 1
Fernando asked on 26 Nov 2010, 09:04 PM
good day, in the examples show how Setting Groups Programmatically.
Dim descriptor As New GroupDescriptor()
descriptor.GroupNames.Add("Country", ListSortDirection.Ascending)
Me.RadGridView1.GroupDescriptors.Add(descriptor)

excellent...!
Now. how I can delete that same Group Descriptor named descriptor, Programmatically.
I try to find one solution but I could not...
Greetings.

2 Answers, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 26 Nov 2010, 10:04 PM
Hello Fernando,

Just remove it from the GroupDescriptors, or easier if you want to remove all just Clear() the GroupDescriptors, if you need help just let me know.
radGridView1.GroupDescriptors.Remove(descriptor);
// or
radGridView1.GroupDescriptors.Remove(radGridView1.GroupDescriptors.LastOrDefault());
// or
radGridView1.GroupDescriptors.Clear();

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
0
Fernando
Top achievements
Rank 1
answered on 26 Nov 2010, 10:22 PM
The first option is just what I needed, thank you very much!
Tags
GridView
Asked by
Fernando
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Fernando
Top achievements
Rank 1
Share this question
or