Hello,
There is probably a very simple answer but
I have a grid with a tree column. When the user click on a child row, I need to select the parent. I know how to get the parent of a row, but this is of type tRow and I need to get to the index of that row in order to select it. How can I do that ?
thanks in advance
Didier
Select the parent row
Started by didiergm, Jan 24 2011 05:08 PM
2 replies to this topic
#1
Posted 24 January 2011 - 05:08 PM
#2
Posted 26 January 2011 - 03:07 AM
Hello Didier,
Maybe next method helps:
function GetParent(const Index: Integer): Integer;
if not, I will made a procedure GetRowIndex(TRow)
Best regards
Maybe next method helps:
function GetParent(const Index: Integer): Integer;
if not, I will made a procedure GetRowIndex(TRow)
Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#3
Posted 30 January 2011 - 07:47 PM
QUOTE (Boki (Berg) @ Jan 26 2011, 03:07 AM) <{POST_SNAPBACK}>
Hello Didier,
Maybe next method helps:
function GetParent(const Index: Integer): Integer;
if not, I will made a procedure GetRowIndex(TRow)
Best regards
Maybe next method helps:
function GetParent(const Index: Integer): Integer;
if not, I will made a procedure GetRowIndex(TRow)
Best regards
Sorry Boki, I did not see your reply as I was away for a few days.
This function would help, I am just a bit confused between trows and using rows vis indexes.
Didier
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users