Home Forums WinForms controls Xceed Grid for WinForms Grid Performance!! (70 cols X 400 rows) Reply To: Grid Performance!! (70 cols X 400 rows)

Xceed Support
Member
Post count: 5658

I tried to reproduce your situation and the scrolling was quite good. To be sure also, did you test this in release mode (not just in debug)? It can make a big difference sometimes.

Here is the code I used for testing:

<code>
private void Form1_Load( object sender, EventArgs e )
{
gridControl1.DataSource = createDataTable(12, 1200);
}

private DataTable createDataTable(int columnNumber, int rowNumber)
{
//Create a DataTable
DataTable dt = new DataTable();

for( int j = 0; j < columnNumber; j++ )
{
DataColumn dcId = new DataColumn();
dcId.ColumnName = “Column” + j.ToString();
dcId.DataType = System.Type.GetType( “System.String” );
dt.Columns.Add( dcId );
}

for( int i = 0; i < rowNumber; i++ )
{
System.Data.DataRow row = dt.NewRow();
foreach( System.Data.DataColumn col in dt.Columns )
{
row[ col.ColumnName ] = “Item ” + i.ToString();
}

dt.Rows.Add( row );
}

return dt;
}
</code>

Imported from legacy forums. Posted by CharlesB (had 4582 views)