On a prior post, I received help to be able to show descriptions in a smaller font underneath each item in an UltraDropDown within a cell in a grid. That help was much appreciated. The issue I'm having now is related to styling. It would look more appealing if the descriptions (were aligned to the top and did not have a vertical gap between the item for which the descriptions appear below.
The code from the post can be used as a baseline: https://ko.infragistics.com/community/forums/f/ultimate-ui-for-windows-forms/121729/ultawingrid---column-having-cell-with-editorwithcombo-dropdown-valuelist---trying-to-show-a-description-underneath-each-item-with-a-smaller-font
Attached please find a screenshot - where I'm trying to find a way to style this to remove this vertical gap and to have the descriptions in the gray font to appear right underneath the item.
question 2 - I couldn't figure out which appearance to modify so that when the hover is on an item that the color remains gray for the description. In the screenshot it is showing as black.
thank you
Hello,
Thank you for providing the reference post. I tried to run the sample Mike Saltzsman provided but for some reason it was not loading for me so I requested him to provide the sample again as a baseline.
About your frst issue I am not sure from where this vertical space is coming from , may be you have RowLayout and there are other cells in there taking up space?
In order to reproduce the issue please update the attached sample and send me back for further investigation.
About the second issue, you can do something like this:
private void UltraDropDown1_InitializeRow(object sender, InitializeRowEventArgs e) { e.Row.Cells["Description"].SelectedAppearance.ForeColor = Color.Gray; } or another way is create an Appearance object (ONCE) with a ForeColor and assign that instead, would be more efficient.
I attached MikeS sample with updated style please modify it to reproduce the first issue and send me back .
Sincerely,Divya jain
8270.UltraWinGrid_Style_Items_in_ComboEditor.zip
Thank you very much for your help. I have modified the solution that exhibits the behavior described above.
Please find the solution here:
www.dropbox.com/.../UltraWinGrid_Style_Items_in_ComboEditor.zip