- AutoGenerateColumns is set to true
- I attach a DataTable during NeedDataSource
- At some point before the page load, I'm trying to hide one of columns if a certain condition is true.
No matter which event I try, RadGrid1.MasterTableView.Columns is always empty.
I've tried just about every event: NeedDataSource, OnItemCreated, oncolumncreated, oncolumnsreorder, ondatabound, onprerender, Page.PreRender. At no time is the Columns property populated with columns.
I suppose I could create the columns programmatically from the DataTable but I'd rather let RadGrid do it for me if possible.
Any advice is greatly appreciated.