Print Page | Close Window

Check if selected row do have parent

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=7007
Printed Date: 13 November 2024 at 11:21pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Check if selected row do have parent
Posted By: cybeh
Subject: Check if selected row do have parent
Date Posted: 27 April 2007 at 7:33pm
May I know how can I check if current selected row do have a parent row or not?

Thanks in advance.



Replies:
Posted By: sserge
Date Posted: 16 May 2007 at 5:02pm
Hi,

Here is an example:

Private Sub wndReportControl_SelectionChanged()
    If Not wndReportControl.SelectedRows(0).ParentRow Is Nothing Then
        Debug.Print wndReportControl.SelectedRows(0).ParentRow.Record.Item(2).Value
    Else
        Debug.Print "Nothing"
    End If
End Sub


--
WBR,
Serge



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net