Frederick Posted December 4, 2020 Share Posted December 4, 2020 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) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 8, 2020 Share Posted December 8, 2020 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 Quote Link to comment Share on other sites More sharing options...
Frederick Posted December 8, 2020 Author Share Posted December 8, 2020 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. focustotunidbtreegrid.mp4 dbtreeexclaim.zip Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.