Dudi Heryadi Posted November 2, 2018 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
Sherzod Posted November 2, 2018 Posted November 2, 2018 Hi, For example: UniStringGrid1.Col := 5; //-1 for clear UniStringGrid1.Row := 4; //-1 for clear Quote
Dudi Heryadi Posted November 3, 2018 Author 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
Dudi Heryadi Posted November 3, 2018 Author Posted November 3, 2018 The latest one: 1.50.0.1481 Quote
Sherzod Posted November 3, 2018 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
Dudi Heryadi Posted November 4, 2018 Author Posted November 4, 2018 Hi Sherzod, Thank you, it works, that solution is enough for me. Regards Quote
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.