I need to loop through the individual tiles in a tile view in a subroutine. I am calculating a custom variable to track how many tiles have a particular value in a particular element. It was suggest to me by support in T191386 to use a For/Next loop such as:
For Each item As TileViewItem In visibleTiles.Values
if CLng(item.Elements.Item(5).Text) = 10 then
mycounter = mycounter + 1
My problem is that when I create the For Each line as suggested I get an error in the software "Visiblevalues" is not a member of Dev.Express.XtraGrid.View.Tile.TileView.
Can you provide me with a VB.NET sample of how to loop through all the tiles in a tileview and be able to evaluate the value of an element and/or column value? I can easily do this in a different layout of the Grid Control, but I am having a real problem in Tile View layout.
My problem is that when I create the For Each line as suggested I get an error in the software "Visiblevalues" is not a member of Dev.Express.XtraGrid.View.Tile.TileView
It seems that you try to access the Visiblevalues property using code like this:
Since TileView doesn't contain any member called 'Visiblevalues' , you have that error.
I've prepared a small sample for you to demonstrate the approach from the TileView - Add the VisibleTiles property ticket. I hope it will be helpful for you.