...
>
>I don't know why you really adding the grid in code and not at design time. I never had to do this. May be you could just create it at design time, place the code in the column textbox and make the grid invisible until you need it.
Hi Nick :)
One exception maybe. I generally end up with special grid needs (actually designing a class to make it easily configurable at the moment) where you can't control all (or let's say much more complex) from a central place. I have my column class, controls classes, header classes then waiting to be part of a grid. In that case I prefer to custom build the grid (honestly even I change default controls if I did it manually using my custom builder).
Also at run time grid changes skin and underlying data. With container I can control the mouse operations yes but keyboard ? If I was missing the obvious all this time long I'd be happy.
Cetin