This is a migrated thread and some comments may be shown as answers.

gridview load on demand

1 Answer 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Reza
Top achievements
Rank 1
Reza asked on 22 Dec 2013, 01:27 PM
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. 


1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 23 Dec 2013, 01:15 PM
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 >>
Tags
GridView
Asked by
Reza
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or