when i use ExpandAll and CollapseAll on key press event for e.g on ESC key press i use CollapseALL()
then it simply Collapses the roes depending on the Active row, second time i press ESC key i dosent Collapse the nest grouping in my Grid.
e.g.
Grouping on Client Code if i have 2 clients when i press ESC then it picks up the Active row and Collapses it but when i press ESC it dosent Collapse.
Can you post the code you are using? My guess is that you are calling CollapseAll on a row (such as the ActiveRow) instead of calling the method on the grid.
this is the code i have written to expandall and collapseall.
but i want to expand the grouping one by one means the last group then the second last and so on.
private void ultraGrid1_KeyPress(object sender, KeyPressEventArgs e) { UltraGridRow row = this.ultraGrid1.ActiveRow; //if (e.KeyChar == (char)27) if (e.KeyChar == (char)Keys.Escape) { // Call CollapseAll to collapse the row and it's descendant rows recursively. row.CollapseAll(); } else if (e.KeyChar == (char)Keys.Enter) { // Call ExpandAll to expand the row and it's descendant rows recursively. row.ExpandAll(); } }