How to align the entire form vertically top or bottom?. In case of TrueDBGrid

Posted by: mtashildar on 9 August 2019, 5:52 am EST

    • Post Options:
    • Link

    Posted 9 August 2019, 5:52 am EST

    TrueDBGrid for WinForms

    When TrueDBGrid.DataView = DataViewEnum.Form is used then

    it aligns the entire form vertically centered on the screen.

    How to align the entire form vertically top or bottom?.

    Please explain.

    Regards

    Mahesh

  • Posted 9 August 2019, 7:16 am EST

    Hello,

    To align the TrueDbGrid Form on the top or bottom, you need to set the Dock property TrueDbGrid accordingly.

    Code snippet is given below :

    //To align the Form on the Top

    c1TrueDBGrid1.Dock = DockStyle.Top;

    //To align the Form on the Bottom

    c1TrueDBGrid1.Dock = DockStyle.Bottom;

    If you need any other help, please let us know.

    Thanks and Regards,

    Prabhat Sharma.

  • Posted 10 August 2019, 3:01 am EST

    Hi Prabhat,

    Thanks for the reply.

    What you suggested is already knew to me.

    In my case I have used c1TrueDBGrid1.Dock = DockStyle.Fill;

    Just because to expand the content boundaries to the maximum level.

    It appears to be fine if the column rows of DataViewEnum.Form are large enough to completely cover the fill area (i.e. scrollable enough).

    The problems arises when column rows are not enough to fill the whole area and then it center the content.

    In such case, how can I make the content top aligned or bottom aligned?

    Regads,

    Mahesh

  • Posted 12 August 2019, 7:18 am EST

    Hello Mahesh,

    We have escalated the case to the developers. [Internal Tracking Id : 393898]

    We will let you know once there is any response from the developers on this.

    Thanks and Regards,

    Prabhat Sharma.

  • Posted 11 October 2019, 4:32 am EST

    Hello,

    Sorry for the delay.

    We have got the response from the developers and as per their suggestion : “It is a limitation when using DataView as Form. The form will show only in the center”

    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