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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

61256 May 22,2007 11:32 AM May 28,2007 02:21 PM Windows Forms 5
loading
Tags: GridControl
Evgeny Tishkin
Asked On May 22, 2007 11:32 AM

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

haneefm [Syncfusion]
Replied On May 22, 2007 12:03 PM

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

Evgeny Tishkin
Replied On May 23, 2007 02:27 AM

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

haneefm [Syncfusion]
Replied On May 23, 2007 02:47 PM

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

Evgeny Tishkin
Replied On May 28, 2007 07:53 AM

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.

haneefm [Syncfusion]
Replied On May 28, 2007 02:21 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;