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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to access child record(s) from a gridcaptionsection or gridcaptionsummarycell

Thread ID:

Created:

Updated:

Platform:

Replies:

53185 Dec 10,2006 02:39 PM UTC Dec 12,2006 05:06 AM UTC WinForms 3
loading
Tags: Grouping
James Blibo
Asked On December 10, 2006 02:39 PM UTC

How can I access the child record(s) from a GridCaptionSection or GridCaptionSummaryCell in a ggc that has one level of grouping?


Administrator [Syncfusion]
Replied On December 11, 2006 04:47 AM UTC

Hi James,

You can access the related records from GroupCaptionSummaryCell using the following code.

// get the CaptionRow from the DisplayElement.
GridCaptionRow gr = CaptionSummarystyle.TableCellIdentity.DisplayElement as GridCaptionRow;

//Accessing the related records in a Group...
foreach(Record rec in gr.ParentGroup.Records)
{
Console.WriteLine("Records:" + rec);
}

Best Regards,
Haneef

James Blibo
Replied On December 11, 2006 05:23 PM UTC

This did NOT solve my problem. The cell that I am interested in is the GridCaptionSection and GridCaptionSummaryCell AND NOT a GridCaptionRow like in your example

Administrator [Syncfusion]
Replied On December 12, 2006 05:06 AM UTC

Hi James,

Here is a minimal sample that shows you How to access child record(s) from the CaptionSection or CaptionSummaryCell in a grid. It implements the TablecontrolCellClick event to get the child record from the CaptionSummaryCell. Please refer to the attached sample for more details.

GGCCaptionSectionRecords.zip

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.

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

;