How to reference objects within a grid?

Created at 20 Jan 2025, 13:47
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
GI

Giorgi_1

Joined 23.06.2023

How to reference objects within a grid?
20 Jan 2025, 13:47


Hi guys, 

How would i programmatically reference a grid object? I have a 2 x 2 grid, each cell contains a button. How would i be able to reference the button in Row 0, Column 0, or Row1, Column 0, using code?

I've looked at the documentation, but i can't find anything relating to indexes of grid Panels, or how to reference the cell contents. 

Many Thanks, 

 


@Giorgi_1
Replies