C1TrueDBGrid Add Rows

Posted by: ptobian on 5 September 2019, 10:29 pm EST

  • Posted 5 September 2019, 10:29 pm EST

    Is there a possibility to add more rows to bound grid?
    I have a bound grid with 50 lines, if I load more at the beginning it takes too long. So I want to load more data in the background after starting. How can I achieve this?

    Sorry, if my English is too bad
  • Marked as Answer

    Replied 9 September 2019, 2:04 am EST

    Hello,

    Sorry, but it is not possible with TrueDBGrid but if you are creating the application from the scratch, you can use any of one solution given below : ​

    Solution 1 : You can use C1DataSource with FlexGrid to achieve the desired result by using VirtualMode property. ​
    By just setting the VirtualMode property to true on any view source, you can turn on asynchronous scrolling. Transparent to both the developer and the user, virtual mode gets data from the server in chunks as the user scrolls. Please go through the Point 5 of the given blog demonstrating the same : ​​
    https://www.grapecity.com/blogs/introducing-studio-for-entity-framework
    ​​
    Solution 2 : You can achieve the desired result by FlexGrid using a custom class VirtualDataSource as suggested in product sample VirtualMode of FlexGrid at location : ​
    \Documents\ComponentOne Samples\WinForms\v4.0\C1FlexGrid\CS\VirtualMode​

    I hope it clears.​

    Regards,​
    Prabhat Sharma.
  • Replied 15 September 2019, 8:09 pm EST

    Thanks for the answer
Need extra support?

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

Learn More

Forum Channels