Hello,
I would like to ask you, how can i do for forcing my cards to be on the same line ?
Thank you
Hello Myrco,
If I understand you correct you need all the cards in WinGrid configured to CardView to display on one row. You can do this by set MaxCardAreaRows property to 1. More about settings of UltraGrid while band is in Card View mode you can find following next link http://help.infragistics.com/Help/Doc/WinForms/2011.2/CLR2.0/html/Infragistics2.Win.UltraWinGrid.v11.2~Infragistics.Win.UltraWinGrid.UltraGridBand~CardView.html
Please find attached sample solution with MaxCardAreaRows set to 1.
Please let me know if this is what you are looking for or if I am missing something.
Exactly what i wanted !! Thank you.
Have a nice day.
A card is a row. So you apply an appearance to the row, just as if it were a normal row using the row's Appearance property.
this.ultraGrid1.Rows[0].Appearance.BackColor = Color.Red;
It's not working. What i want it's change the color for one card's header.In my exemple, it's one who have " [C] "
Hi,
Are you saying that setting the BackColor on the row isn't working at all? Or that it's just not doing what you want it to do, which is to change the color of the header?
If it's not working at all, then it must be getting overriden by some other setting in your application or possibly by AppStylist. In which case, you will probably have the same problem setting the color of the header.
Unfortunately, there is currently no way to set the Appearance on the card caption area. You'd have to use a DrawFilter. You should Submit a Feature Request to Infragistics and perhaps this can be added in a future release.
With a little coding, you can achieve what you want using a DrawFilter. Here's a KB article to point you in the right direction. It's using Images, but you can just as easily set the BackColor. Let me know if you need any further assistance getting it working. :)
HOWTO:How can I have each Card in an UltraWinGrid display a different image based on the data in the row?
It's working, but it doesn't what i wanted. I realy want changing the BackColor for one row.
I will try with DrawFilter and submit a feature request.
Thank you.
I made some additional research. As Mike wrote to have only one card caption painted with different back color you need to use draw filter. Please find attached sample solution whit only one card caption back color painted in custom color.