Custom Grid: Multiple data tables

Brady Kelly <[email protected]> Sat, 3 Nov 2007 17:25:11 +0200
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Organization Chase Software
Message-ID <[email protected]>
 I'm busy designing a custom grid that should be able to accommodate
interleaved rows with varying column structures. I only need very
lightweight functionality, so instead of extending a DataGridView, I'm
creating my grid from scratch using a DataRowControl, which is a Panel with
one Textbox for each column in the definition for a row. Then I arrange a
collection of these DataRowControls vertically, one for each row in my data
source, on another panel. Is there a better way to do this?

Now, when I do what I describe above, the first problem I find, and I'm sure
you'll see many more posts on this here by me, is sizing. I don't want a
scrollbar on each row, so my row Panel has AutoScroll set to false, but the
Panel holding all the rows has AutoScroll = true. However, in this
arrangement, I still only get vertical scrolling. Am I doing something
wrong?

In summary, is my whole approach to this problem on the right track?  It
seems to be working well enough for a start, but I'd like to know if I'm
going to get into any trouble that others may have found on this path.