Hallo,
I have a (compressed) CardView grid, which scrolls (to the right - I'd like vertical scrolling too, but understand that it's not available as yet).
If there are, say, 4 cards defined, A,B,C,D, and 3 fit on the first screen: A,B,C, and I then scroll to the right, I now see B,C,D.
This gives the incorrect impression that there are 6 cards. How can I set the grid so that when I scroll, I can only see D?
Thanks, Joel
Hi Joel,
I don't beleive there is any way to do that. The grid scrolls only so far as needed to get the last card into view.
Really? That makes no sense to me. If it scrolled vertically like that, it would be one thing, but horizontally? What is the mental image of these "cards" supposed to be, if they are not laid out somehow? Do they follow me around when I move to the right?
Do you have any other suggestions? Can I make row layout that looks like the card view (with a bitmap, and the field names next to the fields)?
Thanks.
Hi,
The easiest way to do this is to use the grid designer and just drag the columns around and adjust their spans and positions. It's very hard to do this in code.
Of course, this means that your grid has to have bands and columns at design-time. So if your data source is not available at design-time, then you will have to use the grid designer to set up the data structure.
Here's a KB article that explains how to do this:
HOWTO:How can I define columns in the grid at Design-time and bind them at run-time so that some fields of the data are excluded from the grid?
Thanks Mike.
One card per row would be OK for me; do you have any pointers as to how I could get the row layout to look something like:
bitmap | txt | txt |
| txt |
i.e. like a card, where the bitmap takes up, say, two "rows" ?
I did a little research on this and I could not find any design reason why it was done this way. It might be that this is what Outlook did. Or it might be that this was just done for technical reasons rather than design reasons.
Have you tried changing the ScrollBounds property? I don't think that will have any effect here, but it's worth a shot.
If that doesn't work, I don't think there's any way to work around this.
You could make a RowLayout which looks like a Card, but you cannot align the rows horizontally likes cards in such a case - there would be one card per row.