Hello Telerik Team,
I'm using 2010.1 409 Winform Telerik library on both VStudio 2005 and VStudio 2008.
I'm trying to implement a (rad)gridview in Virtual Mode using more than 150000 records/table.
Moving across the first 1000 records is very flawless.
Instead, if I try to scroll to the last records, the grid significantly slow down.
The following code should reproduce the problem:
The standard C# DataGridView, with the same code, works without any problem.
Thanks in advance.
Carlo
I'm using 2010.1 409 Winform Telerik library on both VStudio 2005 and VStudio 2008.
I'm trying to implement a (rad)gridview in Virtual Mode using more than 150000 records/table.
Moving across the first 1000 records is very flawless.
Instead, if I try to scroll to the last records, the grid significantly slow down.
The following code should reproduce the problem:
public Form1() |
{ |
InitializeComponent(); |
this.radGridView1.EnableSorting = false; |
this.radGridView1.EnableFiltering = false; |
this.radGridView1.EnableGrouping = false; |
this.radGridView1.Dock = DockStyle.Fill; |
this.radGridView1.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill; |
this.radGridView1.CellValueNeeded += new GridViewCellValueEventHandler(radGridView1_CellValueNeeded); |
this.radGridView1.CellValuePushed += new GridViewCellValueEventHandler(radGridView1_CellValuePushed); |
radGridView1.VirtualMode = true; |
radGridView1.ColumnCount = 10; |
//// Increase RowCount --> increase memory usage: why?? |
this.radGridView1.RowCount = 150000; |
} |
void radGridView1_CellValuePushed(object sender, GridViewCellValueEventArgs e) |
{ |
} |
void radGridView1_CellValueNeeded(object sender, GridViewCellValueEventArgs e) |
{ |
e.Value = e.RowIndex + e.ColumnIndex; |
} |
The standard C# DataGridView, with the same code, works without any problem.
Thanks in advance.
Carlo