Rotate the grid

E

Earl

What's the easiest way to pseudo-rotate the grid? What I would like to do is
list the column headers in column 0 and the actual column contents for one
record in column 1. I can do this fairly easy in eVB, but the CF DataGrid
looks quite a bit trickier.

Actually, I'm stumped that MS would not more easily implement this
functionality because I would think that any CF developer would want this
capability. Simply put, its pretty screwball to always have to scroll
horizontally on a PocketPC grid. All of the examples I've seen so far for
..Net CF have your customers scrolling mindlessly to the right. Since most
apps are usually dealing with one record at a time, it seems much more
logical that if you wanted the DataGrid to scroll at all (another topic),
then you would want it to ONLY scroll vertical.

Finally, some might suggest using a ListView instead, as it would lend
itself to this dual-column approach. The ListView has some more serious
shortcomings that make it totally inappropriate for this app, not the least
of which is the inability to control row height.
 
E

Earl

For those lurking, here is the simplest technique I've thought of to emulate
this functionality (not as simple as an eVB flexgrid where you could just
loop and set up the left side of the grid static but does work).

I created two columns, populated the field labels in an array and streamed
the single record data into its array also. At the time I read in the data,
I loop creating new rows and adding the label/data array values in the
appropriate columns, then attach the columns to the table.

This doesn't give me as much flexibility as I'd like, so I'd still love to
hear better suggestions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top