I am attaching 2 layouts one is how the card view looks by default and 2 looks more the way I want it to look. I want basically the last column of the row to appear to the right of the other columns and occupy all space expanding to the right and the rows to flow and scroll down not to the left.
We use the AppStylist and I cannot find any reference in there for doing an alternate color for rows I cannot find RowAlternateAppearance in there anywhere.
If you notice in Note Text field the first field shows a little bit of a the sentence then three ellipses indicating there is more text but it has been abbreviated, It should fill in all text into the cell without abbreviating.
Notice the second and third rows do not show any text in them, it should, but it will only show the abbreviated text when the row is active, these rows should also show all of there text, active or not.
Alternate row colors is pretty easy.
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { var layout = e.Layout; var band = layout.Bands[0]; var ov = layout.Override; ov.RowAppearance.BackColor = Color.White; ov.RowAppearance.ForeColor = Color.Black; ov.RowAlternateAppearance.BackColor = Color.Pink; ov.RowAppearance.ForeColor = Color.Black;
Although... I'm not sure where the appearances you are already seeing in your grid are coming from. If you are loading a Style Library (isl file), then those settings will override the ones in code. So you would have to update your isl to have an alternate row color, which I believe is a State on the UltraGridRow. As for your other question... " I just need the text to fill the cell" - I don't understand what you mean by that.
Looks Like I am there partially... I just need the text to fill the cell and to get alternating row colors
Your mock-up is showing vertically stack rows, so it seems like you don't really want CardView here. You would probably be better off just using RowLayouts to arrange the cells and headers within the row to match what you have here. And that would give you vertical scrolling like normal.
RowLayouts can be a bit daunting if you haven't worked with the concept of a GridBagLayout before. So I whipped up a quick sample/referece that demonstrates a grid with a similar structure to what you have here.
You might notice that in my sample, the "Note" column header is on the same line with the "NoteDate" column. I wasn't sure if you really wanted that gap you have there in your screen shot or if that was just a result of the CardView you were pulling from. So I left out that gap. But if you did want a gap there, all you would have to do is increase the OriginY values being passed into the SetRowLayoutColumnInfo method by 1.
WindowsFormsApp65.zip
Hello,
Setting the labels to be displayed both on left side and on top of column in the same card is currently not possible. Furthermore, vertical scrolling is also not supported using CardView.
I would suggest checking Row Layouts section of the documentation of UltraGrid here. Also you can check the snapshots that can be achieved using RowLayouts here.
If vertical scrolling is absolutely mandatory, check the Row layout in conventional view with "Keep headers with cells" option.
Should you have further questions, please let me know.
Sincerely,Tihomir TonevAssociate Software DeveloperInfragistics