| || |
MSFlexGridWndClass: How to select Cells or Rows
I have lots of MSFlexGridWndClass Controls in my application and so far i have been able to:
'Get number of rows
MyRows = MyMSFlexGridWndClass.rows
'Get number of cols
MyCols = MyMSFlexGridWndClass.cols
'Get Data in Cell
MyCell = MyMSFlexGridWndClass.TextMatrix(x,x)
BUT i dont know how to:
- Select a cell, cells
- Select a row, rows
Thanks for your help,
Re: MSFlexGridWndClass: How to select Cells or Rows
If you want to click cells of your grid, you should calculate their coordinates by using the grid's native properties and methods as you'd do this inside your application. After that, click on these coordinates.
Note that you may need to convert coordinatesfrom twips to pixels as it is described here.