Draw table with GDI+

  • Thread starter Thread starter Walter
  • Start date Start date
W

Walter

Is there a quick and easy way to draw a table on a winform? For my
university assignment, we are asked to practice drawing with GDI+, so we
are not allowed to use any built-in controls.

The table has 5 columns and 2 rows and the first row is the heading.
I guess I could use g.DrawRectangle() and g.DrawLine() repeatedly, but
that's too cumbersome, plus I want to achieve something like DrawRow(1)
to insert data to a cell.

Any good ideas?
Thanks
Walter
 
Using 2 simple for loops wo and a call to DrawRectangle would accomplish the
"drawing" aspect of the grid .
 
Back
Top