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.

DataGrid Parent Row

Thread ID:

Created:

Updated:

Platform:

Replies:

1977 Dec 9,2002 05:20 AM Dec 9,2002 05:33 AM Windows Forms 1
loading
Tags: FAQ
AK
Asked On December 9, 2002 05:20 AM

Hi, Does anyone know how to programmatically access the parent row information displayed in the header of a datagrid's child table when the child table is empty? If the child table is not empty, I can navigate up to the parent table via my DataRelation, but what do I do otherwise? I can't use GetParentRow as I have no child records. The parent row is (if the property is turned on) displayed in the grid so it must be available somehow. Would greatly appreciate any help. AK

Administrator [Syncfusion]
Replied On December 9, 2002 05:33 AM

Have just discovered answer to my own question: Dim myCM As CurrencyManager = DataGrid1.BindingContext(DataGrid1.DataSource, parent_table_name) Dim myindex As Integer = myCM.Position Dim myRow As DataRow = DataSet1.Tables(parent_table_name).Rows(myindex)

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.

;