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?
Typically, what I will do is set up the column configuration in the InitializeLayout event of the grid. This way the same code gets called every time you set the grid's DataSource.
If that won't work for you for some reason, then you should save the grid's Layout prior to step 3 and then load it afterward. You say you can't do this, but why not? What's the problem with it? You don't have to save to a file, you can save to a stream in memory.
Hi Frank,
I'm not sure what you mean. There are save and load methods on the DisplayLayout so you can save the layout to a file and load it back again.