GGC refresh issue.

Hello, I hope you can explain a problem I am experiencing.

I am running MS V/s 2005 and have a gridgroupingcontrol bound to a table in a dataset through a bindingsource (All created via the tasks drop down presented during design time.

A couple of the fields are populated from dropdown lists. These are obtained by setting up foriegnkeyreferences which all works fine.

When running. The addnew row allows for new lines to be edited and the results show up. ie clicking the enabled button will toggle it. However, Once the line has been added a new behaviour is observed.

If I click the enabled button the grid isnot updated (The change has taken effect just the grid has not updated) until I move off the row or press enter. If instead of moving off the row or press enter but TAB to the next field the change is lost (ie, pressing enter or moving off the row does not update the grid).

I've been using the syncfusion grids for a while now and not seen it behave like this which makes me think I may have clicked an option on/off to make it behave like this?

Thanks
Dan Evans

2 Replies

HA haneefm Syncfusion Team July 13, 2007 09:53 PM UTC

Hi Daniel,

By Default,The GroupingGrid will push all data for a row into the underlying datasource for every record once you move the current cell of that record. Once the changes for a record have been pushed into the datasource the grid has no more knowledge about these changes and thus cannot reverse and undo these changes.It does not push all data for a row into the underlying datasource for every cell movement. If you want to commit all data to undelying datasource for every cell movement(button's click),you can call in Table.EndEdit Method(before calling this , you need to call the Table.TableDirty property to true). Below are the code snippet.

this.Grid.Table.EndEdit();
this.Grid.Table.TAbleDirty =true;

Best regards,
Haneef


DE DuplicateDanny Evans July 16, 2007 02:10 PM UTC

Thank you Haneef. calling Table.Endedit; Table.TableDirty = true; during the tablecontrolcurrentcellchanged event for certain column allowed me to control the grid to give the required results.

Loader.
Up arrow icon