Grid opens scrolled to the Right

Posted by: rodneybuxton on 8 September 2017, 3:04 pm EST

  • Posted 8 September 2017, 3:04 pm EST

    I defined a new grid and it is larger than the window it is displayed on. It has horizontal and vertical scroll bars both defined as AsNeeded.  But when the window opens the grid is displayed scrolled horizontally all the way to the right rather than to the left as it should be.

     Obviously I'm missing something or doing something wrong here. I've attached a screen shot of what it's doing in case I'm not clear.

    Thanks for  your help.

    Rodney 



  • Replied 8 September 2017, 3:04 pm EST

    Hello,

    I was not able to replicate the issue at my end. Please have a look at the attached sample. I wold request you to modify the attached sample to depict your issue so that I can replicate the issue at my end and debug it further.

    Thanks,

    Manpreet Kaur

     


    2013/02/ScrollSpread.zip
  • Replied 8 September 2017, 3:04 pm EST

    I couldn't get your project to open properly but had no problem reproducing in my own project so I'm attaching that. I have all my code included, but it failed without my initialization code. I just put it in so you would get an idea of what I was doing.

     

    Rodney 


    2013/02/GrapeCity Wide Grid.zip
  • Replied 8 September 2017, 3:04 pm EST

    I figured out what is causing it and how to get around it...I had defined all the columns and column widths it the designer. Which made the grid wider than what was able to be displayed. I went back and made everything in the designer small enough to display in the window even though that isn't how I wanted it to look and then explicitly defined the column widths in the code and that works fine.  Seems to be a bug in the designer.

    This is an OK work around, but kind of defeats the purpose of the designer.

     

    Rodney 

  • Replied 8 September 2017, 3:04 pm EST

    Hello,

    The behavior that you are observing is dependent on where the scrollbar was dragged and left in the designer. Since it was left somewhere in between in the designer, in your project and you were hiding a few columns, so it made the scrollbar to be dragged at the end when the form was loaded. Please have a look at the modified sample where I have dragged the scroll bar to the left in the designer and hence it is displaying correctly on Form load along with all the settings done in the designer.

    Hope it helps.

    Thanks,

    Manpreet Kaur


    2013/02/ModifiedGrapeCity Wide Grid.zip
Need extra support?

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

Learn More

Forum Channels