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.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

53185 Dec 10,2006 09:39 AM Dec 12,2006 12:06 AM Windows Forms 3
loading
Tags: Grouping
James Blibo
Asked On December 10, 2006 09:39 AM

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 10, 2006 11:47 PM

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 12:23 PM

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 12:06 AM

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.

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.

;