method to determine existance of tree

We’ve recently converted a main grid to tree grid and as such there is a new column at the beginning that holds the tree indicator.

the issue is that its still rarely used, and we are having users left and right complaining about the empty column at the beginning of the grid.

I would like a way to know whether or not the grid currently contains hierarchy. if not, I will just hide the first column. it really doesn’t need to exist until I need it to exist.

I looked through the grid and treegrid api and I couldnt find a boolean api call to tell me if any tree records exist in the grid or not.

I’m hoping to avoid walking through all the lines in code just to figure it out. that will lag the screen in some circumstances.

Unfortunately there is no such method.