views:

427

answers:

0

Hi,

I have a advanceddatagrid(ADG1), which is being populated from the query to Database. I have another advanceddatagrid(ADG2), bound to this datagrid. ADG2 basically contains only 1 row, which has exactly same number of columns as the ADG1. The row has details like, count of items in the perticular columns, sum of the records of the perticular column and so on.

Now, my ADG has few Column Groups. e.g. Stock Quote as a column group and the columns as TODAY, YESTERDAY, DELTA(today-yest). I have added an item renderer for the Stock Quote column group which, when clicked will toggle the visibility of the columns and will show only DELTA when minimized. Now, I am synching this with the other datagrid ADG2 to SHOW/HIDE columns.

But when I show/hide columns, all the other columns are not rearranged properly despite of having the same sizes as the columns in ADG1. I have tried invalidating the display property of both the grids. but it is not working.

Can anyone tell me what needs to be done in this case?

Thanks