GridGroupingControl does not show new record added to datatable

I am using a GridGroupingControl binding to a dataset. In the dataset, there are three tables A, B, and C. There are three relations as well: AB, BC, and AC. The grid is set to display table A. Initially, all tables are empty. When I add records a, b and c to tables A, B, and C respectively, record a and b show up correctly in the grid (when I expand record a). But record c in table C does not show up when I expand record a or b. If I close the grid and open it again, binding to the same dataset, all three records are displayed correctly. Two screenshots are attached to show my problem. Do I need to call some function after the records are added into the dataset? Thanks in advance, screenshots_594.zip

4 Replies

AD Administrator Syncfusion Team August 23, 2005 02:22 PM UTC

I tried to see this problem using the 3.3 RC version in this sample. http://www.syncfusion.com/Support/user/uploads/GGC_ABC_8d56f87c.zip Can you tell me how to see the problem in this sample? What version are you using? In general, you can try setting grid.Table.TableDirty = true followed by grid.Refresh to redraw things entirely.


JP Jianbo Peng August 23, 2005 05:18 PM UTC

I was not able to reproduce the problem in the example though (the library used is of version 3.0.1.0). I''ll try a bit more and see if I did anything wrong in the original program. Thanks, Clay.


JP Jianbo Peng August 23, 2005 05:46 PM UTC

Clay, I reproduced the error in your example, please see the attached project. When you click the button ''Add to C'', you''ll see it. The thing I changed is that the relation BC has two key columns now. Thanks, GGC_ABC_1956.zip


JP Jianbo Peng August 23, 2005 06:14 PM UTC

Clay, I found the reason. If you update all three tables A, B and C in one function, you have the problem. The work around is to call refresh() function after updating each table. Thanks for the example. It helped.

Loader.
Up arrow icon