We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Change child row in datasource doesn''t affect the expanded grid

I've created hierarchical grid using Customers sample and tried to change Child customer in datasource having all the grid expanded. But this datasource change didn't update the corresponding child row in the grid. I had to reexpand parent row to see the changes.

What is the best work around for this problem?

Thanks,
Evgeny

5 Replies

HA haneefm Syncfusion Team May 22, 2007 04:03 PM UTC

Hi Evgeny,

You can call the Table.EndEdit method to commit the changes in a grid. Here is a code snippet.

this.grid.GetTable("TableName").TableDirty = true;
this.grid.GetTable("TableName").EndEdit(); // commit the changes in a grid.
this.grid.GetTableControl("TableName").Refresh();

Best regards,
Haneef


ET Evgeny Tishkin May 23, 2007 06:27 AM UTC

Haneef,

Is refreshing the whole grid the best workaround for updating one child row in grid?

Isn't it the grid bug? We came accross it even in Syncfusion 2.x.

Thanks,
Evgeny


HA haneefm Syncfusion Team May 23, 2007 06:47 PM UTC

Hi Evgeny,

Is refreshing the whole grid the best workaround for updating one child row in grid?
>>>>
No, you can refresh the particular row by using the RefreshRange method. Below is a code snippet.

this.grid.GetTableControl("TableName").RefreshRange(GridRangeInfo.Row(updateRowIndex));

Best regards,
Haneef


ET Evgeny Tishkin May 28, 2007 11:53 AM UTC

It won't help in case we need to add or remove child rows. Only collapse->expand parent row can help. That is rather clunky and slow.


HA haneefm Syncfusion Team May 28, 2007 06:21 PM UTC

Hi Evgeny,

We were not able to reproduce the issue here. Is it possible for you to upload us a sample or modify the browser sample to reproduce the issue here? This will help us to analyse the issue further.

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon