I''m using the GridGrouping Control and using an IBindingList to attach to the DataSource.
When I enter data in col1 of a "*" new row (Record), I update the underlying data object for col2 directly. The value of which should be displayed in col2. However the new row (Record) does not show the updated col2 value which I updated in the underlying data object.
How can I get the "*" new row record to be refreshed from the underlying data object, such that when I make changes to the underlying "*" new row Record object, I get the changes reflected in the "*" new row record.
Here is a little sample. It calls EndEdit on the AddNewRecord so your can then update it from outside the grid.
AdministratorOctober 24, 2004 08:00 PM UTC
Thanks for getting back so soon, I had a look at your sample, it''s not entirely what I want to do. What I would like to do is have the all the changes to the underlying data object appear on the "*" new row, rather than appear on another row on the grid once the user has pressed enter on the row.
I want to be able to see values in dependent cells on the "*" new row and then at the end hit enter to create a new row in the underlying data source.
AdministratorOctober 24, 2004 09:44 PM UTC
Try handling TableControlCurrentCellChanged and add the valuse at that point. Also handle TableControlCurrentCellMoved to reset a bool flag that makes sure you only add the values once. Here are handlers that you can add to the above sample (you also need to subscribe to the two events.)