Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
UltraGrid cell containing a UltraDropDown using bands to show in small font description under each item unable to align vertically to top
posted

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://es.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

Parents
No Data
Reply
  • 7535
    Offline posted


    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

Children