I'm not sure it's easier. Later I prefer to build grids in designer rather than in code. Though both are valid options, of course.
>The easier option would be building the grid with code which is in the container method.
>But that will not have the visual effect while designing the form.
>
>>>I have a container class which has a grid and few controls. The container has all the information of cursor to be created for the grid and the grid is already set with controlsource and column controls.
>>>Before the grid is created I need to create the cursor (Not in the form load event).
>>>Rajesh
>>
>>Unfortunately there is no simple solution for this problem. In such cases I create my grid as a separate class and add it in run-time in container's Init.
If it's not broken, fix it until it is.
My Blog