I'm creating a very generic table editor and would like to set the readonly property of a grid column at run time. The select and update SQL commands are being generated at runtime and they work perfectly with AutoGenerateColumns="true", but I need to set some columns to readonly. I was hoping to simply enumerate the columns after data binding or on the grid's pre_render, but the column count is always 0 for auto generated columns.
I looked at grid.MasterTableView.RenderColumns, but each column's IsEditable property is read-only.
Anyone know how to accomplish this? I'm trying to avoid dynamically creating each column in code and then appending them to the collection.