TrueDbGrid ColumnSelectorStyle is ignoring the property set

Posted by: jim on 7 August 2021, 12:16 pm EST

  • Posted 7 August 2021, 12:16 pm EST

    I have a grid with multiple columns, each with different Horizontal Alignments, some left justified others right or centered.

    This makes the presentation of data easy to read for the users.

    The problem I am having is that the Grid Selected Row ignores Column Alignment properties, instead it left Justifies string columns and right justifies numbers or only allows the same Alignment for all columns.

    In the case of columns that are right justified these rows become the selected row the text jumps to the left.

    Has anyone experienced this issue?

    Thanks

    These are the properties I thought would fix this issue without any luck.

    Me.GrdItem.Splits(0).DisplayColumns(“TimeTm”).Style.HorizontalAlignment = C1.Win.C1TrueDBGrid.AlignHorzEnum.Far

    Me.GrdItem.Splits(0).DisplayColumns(“imeTm”).ColumnSelectorStyle.HorizontalAlignment = AlignHorzEnum.Far

  • Posted 8 August 2021, 11:58 pm EST

    Hello Jim,

    We do not face the Alignment issue at our end on the row selection as shown in the attached GIF.

    If you are doing anything else as shown in the attached GIF or meant something else then please let us know and modify the attached sample accordingly,

    Regards,

    Prabhat Sharma.

    TDB_Alignment_Issue.zip

  • Posted 9 August 2021, 10:01 am EST

    Hi Prabhat Sharma

    Thank you for replying so quickly. I see your demonstration and it appears work the way I want mine to work.

    Unfortunately I was not able to get your solution to run, would it be possible to have a screen sharing meeting?

    Thank you

    Jim

  • Posted 10 August 2021, 3:58 am EST

    Hello Jim,

    We understand your concern and will surely arrange a remote session, but before this, please let us know the following details so that we can investigate this issue and assist you accordingly:

    1: What issue are you facing when running our attached sample?

    2: What is the version of C1 control that you are using at your end?

    3: Are you facing the same issue when creating a stripped-down sample at your end?

    Regards,

    Prabhat Sharma.

  • Posted 10 August 2021, 7:26 am EST

    Hello Probhat Sharma,

    Thank you so much for following up and your help. I can report that was able to get your sample to run properly. I believe the problem running it was because I didn’t have the 4.52 C1 Controls installed. Which has now been added.

    In my project I am using 4.0 controls. I was able to troubleshoot with Hunter yesterday I believe he was able to document what I am doing.

    I am thinking about changing to the 4.52 version of TdbGrid. From all the experimenting we did it seems like that is the only difference. Would you recommend this as well?

    Again thank you very much.

    Jim

  • Posted 11 August 2021, 2:38 am EST

    Hello Jim,

    Yes, it is recommended to use the 4.5.2 FW control as 4.0 FW controls are in maintenance mode for too long.

    https://www.grapecity.com/forums/winforms-edition/net-40-and-20-support-noti_1

    If you still face any issues with the 4.5.2 version controls, then please feel free to ask.

    Regards,

    Prabhat Sharma.

  • Posted 11 August 2021, 7:07 am EST

    Hi Prabhat Sharma,

    I did switch over to the 4.5.2 version of the control yesterday and unfortunately I still have the same alignment issue.

    Jim

  • Posted 12 August 2021, 4:44 am EST

    Hello Jim,

    It is really strange. We have asked the concerned team to again arrange a remote session with you to look into the issue and assist you further accordingly.

    Regards,

    Prabhat Sharma.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels