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.
Syncfusion Feedback

How to refresh child table created by relation descriptor

Thread ID:

Created:

Updated:

Platform:

Replies:

59063 Apr 4,2007 11:01 AM UTC Sep 23,2016 03:57 AM UTC Windows Forms 5
loading
Tags: GridControl
Harshad
Asked On April 4, 2007 11:01 AM UTC

Hi,

I have a nested child table created by relation. I want to refresh the grid when some action occures in other dialog box. i.e datasource change. I am refreshing the grid using grid.refresh() method. Grid get the changes reflected properly but child table shows the old record. Child table does not get refreshed.
Please tell me how to refresh the child table explicitly. I tried
GridControl.TableDescriptor.Relations.ShouldPopulate = true; but it didnt work.
Please give me some pointer

Thanks
Harshad

haneefm [Syncfusion]
Replied On April 4, 2007 07:16 PM UTC

Hi Harshad,

You can try this.

GridTable table = this.grid.GetTable("ChildTableName");
table.TableDirty = true;
table.SummaryDirty = true;
table.TableModel.Refresh();

Best regards,
Haneef

Harshad
Replied On April 5, 2007 05:55 PM UTC

Hi,

I tried to set the tabledirty=true and table.TableModel.Refresh();
but after executing this child table not get refresh properly. relation gets break and child rows are get deleted and not displayed in the grid.
I want to repopulate the child table with the relation on certain event.
Please let me know where i am doing wrong

haneefm [Syncfusion]
Replied On April 5, 2007 06:13 PM UTC

Hi Harshad,

Please try to provide us some more information on this issue. I tried to reproduce the issue, but couldn't. kindly provide us a small sample to reproduce the issue or modify any of our browser sample accordingly. This will help us to analyse the issue further.

Best regards,
Haneef

Daniel Gonzalez
Replied On September 22, 2016 04:16 PM UTC

Hi Harshad,

You can try this.

GridTable table = this.grid.GetTable("ChildTableName");
table.TableDirty = true;
table.SummaryDirty = true;
table.TableModel.Refresh();

Best regards,
Haneef

hi haneefm, 
This way works perfect, thanks you very much 

Danny


Amal Raj Umapathy Selvam [Syncfusion]
Replied On September 23, 2016 03:57 AM UTC

Hi Danny, 

We are glad to know that the provided solution resolved your query. Please let us know, if you have any other concerns. 

Regards, 
Amal Raj U. 


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.

Warning Icon 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.Close Icon

;