Hi
Here is a
sample that shows how you can do what you are seeking.
It contains a derived Diagram in (MyDiagram) in which the CreateView() is overriden to return a custom View (MyView). In the derived View the CreateGrid() is overriden to return a custom LayoutGrid (LayoutGrid).
Take a look at the code in the MyLayoutGrid class in which Draw() and DrawLineGrid() are overriden and changes can be made as per your requirements.
Regards
Arun