Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1165
Can't access columns
posted

I'm using a WinTree that's bound to a self-referencing table.  I'm setting the datasource and data relation in the contructor and calling the SetDataBinding method. 

The problem is I'm expecting to get access to the columns right after calling SetDataBinding so that I can hide the ones I don't want to dispaly, but the count on the ColumnSets collection is still zero.

If I hook up code to a button click event, I have access to the columns at that point but I'm wondering why I it's not accessible in the constructor of my class and, if that's the way it's supposed to work, where is the best event to get access to the columns when loading the tree?