Click here to Skip to main content
11,707,254 members (43,952 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
In UltraWinGrid, the grouped rows are expanded using expand symbol (+). On grid refresh, again the rows are getting collapsed. How to retain the expanded state? (Note: Grouping is done based on multiple columns). While refreshing the grid (to reflected the newly added rows or any updates), i tried to use "Grid.Rows.Refresh(RefreshRow.ReloadData)". But it is not reflecting the newly added rows. How to overcome this problem?
Posted 10-Dec-09 3:21am
scvi145
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi,

I never used and not familiar with UltraWinGrid, but i have an idea to do the overcome above problem.

Problem and Solution:
1. Refresh the grid.
Rebind grid again

2. Maintain expand state during refresh the grid.
you need to assign a javascript function to each row during row data bound.
something like:
image img = (image)e.row.findcontrol("expandcollapseiconID");
img.Attributes.Add("onclick","maintainState(this);");


Thanks,
Imdadhusen
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

this.ultraGrid.Rows.ExpandAll(true);
  Permalink  
Comments
richcb at 30-Apr-13 12:18pm
   
You have been a member for 5 years and your first post is a one-liner solution to a post that is 3 years old with no explanation. Why?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 145
1 OriginalGriff 141
2 chainerlt 110
3 Mika Wendelius 80
4 Maciej Los 80
0 OriginalGriff 9,178
1 Sergey Alexandrovich Kryukov 8,562
2 CPallini 5,189
3 Maciej Los 4,806
4 Mika Wendelius 3,706


Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 30 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100