Hi
I have been having a lot of trouble get RadGridView to work in virtual mode. If the RowCount is set to a large number it makes the scrolling very choppy and slow to respond. It can take up to 5 seconds for the grid to show the row data after the scroll bar is moved. I have created a test program to strip out all my code and it proves the problem is with the grid. There seems to be a lot of overhead somewhere. Don't know why the RowCount should affect performance if this is truly a virtual mode and I provide the data in CellValueNeeded then you should not be doing much. By the way, tried my code with DataGridView and it works really fast and can handle the row count being updated continuously and autoscrolling to bottom. I would expect the example program below to be incredibly fast - am I missing something?
namespace RadControlsWinFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
radGridView1.VirtualMode = true;
radGridView1.RowCount = 1000000;
radGridView1.ColumnCount=5;
}
private void radGridView1_CellValueNeeded( object sender, Telerik.WinControls.UI.GridViewCellValueEventArgs e )
{
e.Value = string.Format( "{0}:{1}", e.RowIndex, e.ColumnIndex );
}
}
}
I have been having a lot of trouble get RadGridView to work in virtual mode. If the RowCount is set to a large number it makes the scrolling very choppy and slow to respond. It can take up to 5 seconds for the grid to show the row data after the scroll bar is moved. I have created a test program to strip out all my code and it proves the problem is with the grid. There seems to be a lot of overhead somewhere. Don't know why the RowCount should affect performance if this is truly a virtual mode and I provide the data in CellValueNeeded then you should not be doing much. By the way, tried my code with DataGridView and it works really fast and can handle the row count being updated continuously and autoscrolling to bottom. I would expect the example program below to be incredibly fast - am I missing something?
namespace RadControlsWinFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
radGridView1.VirtualMode = true;
radGridView1.RowCount = 1000000;
radGridView1.ColumnCount=5;
}
private void radGridView1_CellValueNeeded( object sender, Telerik.WinControls.UI.GridViewCellValueEventArgs e )
{
e.Value = string.Format( "{0}:{1}", e.RowIndex, e.ColumnIndex );
}
}
}