Hi ,
I'm using wingrid 8.2 ver. i have created three groups using SortedColumns.Add method.
Right now it is showing 3 group by rows and its child rows.
Now i want to hide or remove first 2 group by rows not its child rows. Is there any way to do it.
Please let me know.
Thanks
Amit
Correction... "I understand that using the OutlookGropuing we CAN'T mix a standard row witha groupbyrow"
I've been searching the forum regarding this same issue. We have a client that wants to only group and have a "node" for like items and if there is only 1 item then show no "node" and only display the row. If there is only one item there should be no group. I understand that using the OutlookGrouping we can mix a standard row with a groupbyrow.
Is there any workaround for this? The Height property of the GroupByRow is only setting the min value, so we can't set it 0 to hide it. Can we use elements?
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4
Data
122344
Display
1
+2
3
+4
Thanks for any input, direction to help solve this requirement.
Hi Amit,
I don't know of any samples of exactly what you are describing here. There's really not much to it, though.
You need to create a class that implements IComparer and apply it as a SortComparer to a column in the grid. The Compare method on this interface will be called and pass in two grid cells. You would examine the grid cells and they other values in the row. This will allow you to sort the grid by all three columns at the same time.
Then you create another class which implement IGroupByEvaluator. Again, you attach this to the same column as the GroupByEvaluator and you can tell it to group the column only when all three fields match.
Hi Mike.
Can you provide me the sample or link so i cam impliment
No, you can't hide a parent GroupByRow without hiding it's children.
If you want to group the grid based on the combined values of 3 fields, what you can do is write your own custom SortComparer to sort the data and your own custom GroupByEvaluator to handle the grouping. Then you would simply group on one column and group by all three fields at once.