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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DataGrid Parent Row

Thread ID:





1977 Dec 9,2002 10:20 AM UTC Dec 9,2002 10:33 AM UTC WinForms 1
Tags: FAQ
Asked On December 9, 2002 10:20 AM UTC

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 10:33 AM UTC

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)


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon