Forum Discussion
No-no-no!
Just use VirtualItemsCount property instead of wRowCount
Please baxatob can you give me a short script to well inderstand what i sould do and thanks in advance
- baxatob9 years agoCommunity Hero
Try this one:
function Main () { var Grid, Row, Col; Grid = Aliases.yassineTableControlAlias; for (Row=0; Row < Grid.VirtualItemsCount; Row++) for (Col=0; Col < Grid.wColumnCount; Col++) Log.Message (Grid.wValue(Row, Col).ToString().OleValue) } - yassine9 years agoOccasional Contributor
The problem with that snippet as I think is that the wValue or ClickCell method is based somehow with the rowCount property,
- baxatob9 years agoCommunity Hero
Please click on Call Stack tab of your log, then double click on the first row and make a screenshot of the source code.
- Colin_McCrae9 years agoCommunity Hero
Have you tried populating the wValue parameters in the object spy and seeing where that takes you?
I was guessing/speculating that may be the current cell. As I said at the time, it's a guess, we don't know this control, it may well not be. Many grids do use wValue. But others don't My Delphi ones (Component One data driven grids) don't - and theres no point telling you what mine use, they're data driven so use an associated data component making them an entirely different animal. So it may be that you need to use a different property.