Hi, I have a problem with the GroupObject class.
When I perform the default object grouping, like this:
objectGrid.GroupObject.Add(0);
objectGrid.Group();
I get the expected behaviour, ascending sorting depending on the value:

Now, I want to keep the original order of the rows, so I want it to look like this (it's a paint image edit):

This is what I tried:
objectGrid.GroupObject.Add(0,iGSortOrder.None, iGSortType.ByValue);
objectGrid.Group();
But sending the
iGSortOrder.None parameter throws an exception: Value does not fall within the expected range. During my tests, I noticed that the
iGSortType.None argument throws the same exception.
I'm using the 1.70.2.0 version. Thanks in advance.