New Product Launch - BoldDesk !
Introducing help desk ticketing software.
New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.grid.RowCount = 10; grid.ColCount = 8; for(int row = 1; row <= 10; ++row) { for(int col = 1; col <= 8; ++col) { // change the offsets to match the columns MyArray that you want grid[row, col].CellValue = MyArray[row - 1, col + 1]; } }Now using an indexer like this will raise events, but with this many cells, the time will not be noticeable. If you were loading hundreds of thousands of cells, instead of using an indexer like grid[row, col], you would want to work directly with the dataobject. In that case, the inside of your loop would look something like:
GridStyleInfo style = new GridStyleInfo();
style.CellValue = MyArray[row - 1, col + 1];
grid.Data[row, col] = style.Store;
It would speed things up dozens of times for large loops.