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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Add Child Rows when Expanding

Thread ID:

Created:

Updated:

Platform:

Replies:

43348 Apr 20,2006 07:36 PM UTC Apr 21,2006 01:19 PM UTC WinForms 2
loading
Tags: GridControl
Chris Wescott
Asked On April 20, 2006 07:36 PM UTC

Hi, I have a GGC with a P-C relationship. I am using two methods to fill the gird with data. 1 method gets all parents and child and the second gets all parent and only gets the children when the Parent is about to be expanded. In the second scenario, since some Parents have no children when the user presses on the + sign I goto our webservice and get child records. I add them to a dataset and add a relation to the Parent table (if it''s not there). This all works but when the above finishes I need to able to show that child. I fire the above code for getting record and adding it to the dataset in the RecordExpanding event of the GGC. I know that the records have been added correctly because when I expand all using GridGroupingControl1.Table.ExpandAllRecords() the row shows up. Is there a refresh or something I need to call inorder to get the child to show up now that it has been added. Regards, Chris Wescott

Administrator [Syncfusion]
Replied On April 21, 2006 07:30 AM UTC

Hi Chris, I have tested this issue by creating a sample using GroupingGrid in v.4.1.0.50 and then again tested by upgrading to 4.1.0.62. I was not able to reproduce the issue. Here is a sample http://www.syncfusion.com/Support/user/uploads/Nested_GGC_5a309360.zip Could you please run this at your end and let me know how it goes? Thanks for your patience. Best Regards, Haneef

Chris Wescott
Replied On April 21, 2006 01:19 PM UTC

Hi, I solved this problem in my app by doing this and I am not sure why it works. Perhaps you can shed some light on it. Prior to adding rows I call GridGroupingControl1.NestedTableGroupOptions.ShowAddNewRecordBeforeDetails = True Then I add rows and when I am done adding rows I call GridGroupingControl1.NestedTableGroupOptions.ShowAddNewRecordBeforeDetails = false This seems to work fine. If I don''t add the above lines, it doesn''t expand. I will try to get it to reproduce in your app. but I am having no luck at this time. Regards, Chris Wescott

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

;