Jump to content

How To Position To A Row And Column For A TUniDBTreeGrid?


Frederick

Recommended Posts

In a TUniDBGrid, I can use the following code to position to a row and column:-

grdGrid.JSInterface.JSCall('getNavigationModel().setPosition', [grdGrid.CurrRow, grdGrid.CurrCol]);

I can't use the same code for a TUniDBTreeGrid because the CurrRow and CurrCol properties are protected. How do I achieve the same result for this component?

--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1539)
 

Link to comment
Share on other sites

On 12/4/2020 at 7:55 PM, Frederick said:

In a TUniDBGrid, I can use the following code to position to a row and column:-

grdGrid.JSInterface.JSCall('getNavigationModel().setPosition', [grdGrid.CurrRow, grdGrid.CurrCol]);

I can't use the same code for a TUniDBTreeGrid because the CurrRow and CurrCol properties are protected. How do I achieve the same result for this component?

Hello,

You can try this:

TUniDBGrid(UniDBTreeGrid1).CurrRow

 

Link to comment
Share on other sites

2 hours ago, Sherzod said:

Hello,

You can try this:


TUniDBGrid(UniDBTreeGrid1).CurrRow

 

Thanks. The missing property message is gone but the code does not perform as I would expect.

Please see the attached video. Each time I add a record, the new record is properly positioned to but the rectangular highlight is pointing to another row. I want the highlight to be at the new record.

I have also attached the project files.

dbtreeexclaim.zip

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...