I've sorted and collapsed all rows in my grid. What I need is to collapse all groups but one. This is a contextual grid. Meaning that whatever they clicked on to load the grid, is the group that should be expanded. I'd like to only collapse only the ones I need, but I'd settle for grouping them all and expanding the one I'm interested in.
Hello Sean,
Thank you for contacting .I believe this post can help you achieve your requirement.
https://es.infragistics.com/community/forums/f/ultimate-ui-for-windows-forms/45091/expand-groups-on-runtime
Let me know if you need further assistance.
That did the trick. For some reason I looked at the Expanded property and read that it only had 'get'.
I'm posting the code here so anyone coming across this doesn't have to go all the way through the other post.
private void grid_InitializeGroupByRow(object sender, InitializeGroupByRowEventArgs e) { \\The row you grouped by. string sn = e.Row.Value.ToString(); if (sn == ServerName) e.Row.Expanded = true; }