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.
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
Looks Like I am there partially... I just need the text to fill the cell and to get alternating row colors
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.
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.
I can't see how these issues would be different now than when you were using CardView, so it seems like there were existing problems in your application. If the text only shows up when you select the row, then my best guess is that here's an Appearance applied to that cell either in code or via AppStylist such that the ForeColor is the same as the BackColor. I can't think of any other reason why the text simply would not show up. The three dots is also strange. You probably need to set CellMultiLine on that column to true so that it will show multiple lines of text. But I don't see why it would cut off in the middle like that. Unless maybe that's the end of the first line. To set an alternate row appearance in AppStylist, you would go to the UIRoles and find:
UIRoles-->Base-->Row-->GridRow
Then on the bottom you would select the Other States tab. ANd there is only one state under that called Alternate Item.
Whew. Glad you got it all sorted out. :)
I finally got it... it just comes from the fact I have used this very little. In short I was selecting the wrong option i.e. disabled because I was inferring that it was the back ground because it was just above the Cell Title "Background" So I found the correct one and got it working see below...
Modifying stuff in AppStylist can be tricky. If the GridRow AlternateItem isn't working, it's probably because the isl file contains some other role that is overriding it. For example, applying an appearance to the row will not work if there's an appearance applies to the GridCell because the cell covers the row.
I tried opening up Office2007Blue.isl and setting the GridRow AlternateItem appearance and it works fine for me. So you must be using a modified isl that is setting some other role that is interfering or overriding the row appearances.
That also might explain why your unselected row text is not displaying - something in the isl file has been set up incorrectly such that the ForeColor and BackColor are the same. Or perhaps some UI Role in the isl is setting ForeColor or BackColor but not both - that's always a bad idea, since these colors pick up system colors by default so if you set one without the other, you open yourself up to the possibility that the colors will be incompatible.
You could try opening up your isl file in AppStylist and go to the grid tab and play around with the GridCell and/GridRow roles there. But if you can't get it to work, post your isl file here and will I take a look and see if I can figure out what's going on.
CellMultiLine was what I was looking for just could not remember the correct name, that fixed the viewable text problem.
As far as alternating row color the setting you referred to does not seem to work. It does not matter what I set that color too is does not show (Note if it matters the colors are based on the "Office2007Blue" isl file.