I have a WinGrid with Card View enabled (single horizontal row is flipped vertically). I am only going to have a single card in this grid so I want to be able to extend the cells (second column) to occupy the entire display area of the grid. Setting Column.Width does not seem to do the trick. What is the easiest way to do this?
Also, how do I get rid of the disabled horizontal scroll bar at the bottom of the grid?
Thanks.
jcoladon said:I have a WinGrid with Card View enabled (single horizontal row is flipped vertically). I am only going to have a single card in this grid so I want to be able to extend the cells (second column) to occupy the entire display area of the grid. Setting Column.Width does not seem to do the trick. What is the easiest way to do this?
I think you need to use the band.CardSettings.Width property to set the total width of each card.
jcoladon said:Also, how do I get rid of the disabled horizontal scroll bar at the bottom of the grid?
Use the CardScrolBars property, also on the CardSettings of the band.
Mike, I have a related question. We have a WinGrid with a card view enabled and we have 3 cards initialized. For whatever reason, when I am not disabling the scroll bars as shown in the previous post all 3 cards are showing in one line but once the CardView scroll bars are set to 'None' one of the 3 cards jumps to the next 'line'...There's plenty of available space - how do you control card positioning logic? I need to have all cards showing in one line with no horizontal scroll. Thanks!
Thanks Mike, that does seem to change the width of the card area. How do I get rid of the disabled horizontal scroll bar at the bottom of the grid? It seems to show whether or not the card extends beyond the visible area of the hosting control...Thanks.