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