gridview load on demand

2 posts, 0 answers
  1. Reza
    Reza avatar
    1 posts
    Member since:
    Dec 2013

    Posted 22 Dec 2013 Link to this post

    hi 
    I'm working on an application that in one part of this, we have to display physical disk content in grid for user.
    we have a cache(reduce disk access and increase performance) that load 10 kilo byte of data and use it in CellValueNeeded event of radGridView1 as below

    private void radGridView1_CellValueNeeded(object sender, GridViewCellValueEventArgs e)
            {
               
                try
                {
                    e.Value =  cache.retriveCellElement(e.RowIndex, e.ColumnIndex);
                }
                catch
                {
                    MessageBox.Show(e.RowIndex.ToString() + "  +  " + e.ColumnIndex.ToString());
                }
               
            }  
    but when the rowCount of radGridView1 greater than 1000000 this is very slow and when rowCount greater than 2000000 radGridView1 doesn't show anything. is there any limit on rowCount? is there any alternative solution in this case?
    Thank you in advance for your help. 


  2. George
    Admin
    George avatar
    500 posts

    Posted 23 Dec 2013 Link to this post

    Hi Reza,

    Thank you for writing.

    In your case there is nothing more we can do in order to speed up RadGridView. 2, 000, 000 entries is a lot of data and RadGridView is not optimized for such heavy usage. The only possible way to speed things up is to enable fast scrolling, I am afraid however that even this is not much of a help. Below you can find attached a sample project in which you can load more than 2, 000, 000 rows, which answers to your second question.

    Let me know if you have any more questions.

    Regards,
    George
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top