VSFlexGrid Showcell not working

Posted by: david on 6 February 2019, 3:41 am EST

  • Posted 6 February 2019, 3:41 am EST

    I have an issue with a VSFlexgrid when adding a new line which exceeds the current grid window. Normally I would expect the grid and scroll bar automatically adjust and when the new row is set as the current row, it be displayed in the window. This is not happening even if I use the showcell method and I think it relates to the fact that a number of cell have combo boxes. The combo boxes when selected on the bottom row exceed the bottom of the grid window and this maybe tricking the grid into thinking it larger than it current is.
    Can you provide any help on this matter?

    I have included 3 screenshots the first showing the combo drop-down list, the second showing the grid after added a new line, and the third after setting the current row to the new row, and running the showcell method.

  • Replied 7 February 2019, 8:09 pm EST

    Hi David,

    The ShowCell method brings a given cell into view, scrolling the contents if necessary. Can you please let me know where exactly do you call this method and at which step? What actually is your requirement? It would be really helpful if you can share a small stripped down application replicating the behavior at your end. This would help me in assisting you further at the earliest.

    Thanks,
    Pragati
  • Replied 7 February 2019, 11:55 pm EST

    Thank you for your response Pragati, I have managed to create a sample project with the same grid and code used in the main project. The rows are set to 23 and current row set to the last row to make it easier to see the problem. To test keep pressing the enter key, which will automatically open a drop-down for cells with combo boxes, press enter again (no need to choose an option) to move to the next cell. The show cell method is on the combo close up action of the last cell. I have other grids in the main project which work fine and cannot see why this one isnt working.
    Thanks
    David
    VsFlexGrid Sample.zip
  • Replied 18 February 2019, 1:57 am EST

    Have you managed to download my sample and see the issue I'm having?
  • Replied 21 February 2019, 7:48 pm EST

    Hi David,

    I am sorry for the delay in replying to you. This post somehow got lost in the loop. My apologies for the same.

    Thank you for sharing the project. I followed the steps as you mentioned and could observe that the dropdown renders while the cell to which it is attached, is not shown in the view (despite of using the ShowCell method). I have attached a screenshot of the result at my end.
    Can you please confirm if this is the same behavior that you want to refer or there is anything else that I am missing?

    ~Pragati
  • Replied 4 March 2019, 12:35 am EST

    Sorry for my slow reply. Yes this is the same behavior I wish to refer, the grid doesnt scroll down to display the cell or add a scroll bar, although the drop-down does render.
    Regards
    David
  • Replied 4 March 2019, 7:27 pm EST

    Thanks David.

    I have escalated the issue (internal tracking ID: 369340) to the developers and will let you know once there is any information from them.

    ~Pragati
  • Replied 9 May 2019, 2:31 am EST

    Any update on this issue?
  • Replied 9 May 2019, 5:41 pm EST

    Hi David,

    I have asked the developers for an update on this issue. Will let you know once there is any information from them.

    Thanks,
    Pragati
  • Replied 16 May 2019, 1:31 am EST

    I have done some more investigation and think I've found the issue. I'm adding a new row using code in the BeforeEdit method of the grid, if I move this to another method IE AfterRowColChange, it works fine. With this in mind I can probably work round the issue but you may want to update the developers with this latest find.
  • Replied 16 May 2019, 3:24 pm EST

    Thank you for updating on this, David.
    I have conveyed your findings to the developers.

    ~Pragati
Need extra support?

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

Learn More

Forum Channels