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!
Somehow setting CardSettings.MaxCardAreaCols and CardSettings.MaxCardAreaRows did hot have any effect until I changed the style to MergedLabels at which point the controls lined up nicely in one row...intended functionality??
I just tested this out and MaxCardAreaCols works fine for me regardless of the Style. MaxCardAreaRows cannot work when you are using VariableHeight or Compressed styles, because the cards may not be the same height. But it works with the other two styles.