I am creating my own column (adding it to the band, confirming it's existance) and when I databind an outside source it kills all of my runtime created custom columns and auto binds everything from the data source. My custom column then ceases to exist.
What am I missing?
Hi,
The problem is that when you bind data to the grid, it replaces the any data currently on the grid - so in your case your custom columns are dropped from the grid.
You need to change where you add the custom columns.
You can handle the grid's "InitializeLayout" event and add your columns in there. That event is triggered when a new data source is bound to the grid - so in effect you will be adding your columns after the data is bound.
Hope this helps!
This might also help:
HOWTO:How can I define columns in the grid at Design-time and bind them at run-time so that some fields of the data are excluded from the grid?