Dudi Heryadi Posted November 2, 2018 Share Posted November 2, 2018 Hi All, How to select a cell or a row in UniStringGrid programmatically? and how to clear the previous selection? I can't find any method or property to do that. Regards Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 2, 2018 Share Posted November 2, 2018 Hi, For example: UniStringGrid1.Col := 5; //-1 for clear UniStringGrid1.Row := 4; //-1 for clear Quote Link to comment Share on other sites More sharing options...
Dudi Heryadi Posted November 3, 2018 Author Share Posted November 3, 2018 Dear Sherzod, Thank you for the answer, but it only works to change selection. Set UniStringGrid.Row := -1 doesn't change anything. Ragards Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 3, 2018 Share Posted November 3, 2018 Hi, Which build are you using? Quote Link to comment Share on other sites More sharing options...
Dudi Heryadi Posted November 3, 2018 Author Share Posted November 3, 2018 The latest one: 1.50.0.1481 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 3, 2018 Share Posted November 3, 2018 Hi, Make a simple testcase if possible, I will check Also you can use this approach: UniStringGrid1.JSInterface.JSCall('getSelectionModel().deselectAll', []); Quote Link to comment Share on other sites More sharing options...
Dudi Heryadi Posted November 4, 2018 Author Share Posted November 4, 2018 Hi Sherzod, Thank you, it works, that solution is enough for me. Regards 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.