Forum Discussion
Seeing "VLCObject " I assume that you are testing a Dev Express grid...
In Dev Express grid, there is a property something like Aliases......TcxGridSite.GridView.VisibleColumnCount
you can use that in your test
you can get column name using Aliases......TcxGridSite.GridView.VisibleColumns(i).VisibleCaption
where i is column number
so get number of visible column to a variable x
loop through 0 to x comparing visible caption to your caption "DontCareAbout"
if found, column is visible else not visible
- strp8 years agoNew Contributor
If there would be a property like this, I would have used it.
There is AbsoluteCount, AbsoluteItems, AbsoluteVisibleCount and AbsoluteVisibleItems - but they all refer to items in the grid.
There is indeed wColumn (with wColumn(0) as the one I care about) and wColumnCount = 25, but they do not change no matter if I hide this or more columns.
- Colin_McCrae8 years agoCommunity Hero
I don't have any examples of this particular control I can look at. but looking at the Dev Express docs (those I can find anyway - they don't make them easy to find!) it looks like these List controls (this is a List, not a Grid) should have a "Styles" property? Not sure if that applies to the whole list, or is on a column by column basis.
Sounds to me like the kind of property that may contain visibility info?
Is anything like that present on your control?
- HKosova8 years agoSmartBear Alumni (Retired)
Hi strp,
Try something like
cxTreeList.Bands.Items(bandIndex).Columns(colIndex).Visible
Related Content
- 2 years agoShahZaib
- 8 months agoEgg
- 4 years agotradam
- 4 years agomaxrussell
Recent Discussions
- 8 hours agoashly