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.
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.
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??
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!
Never mind, found the answer - grid.Band.CardSettings.CardScrollbars = CardScrollbars.None;
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.