AD
Administrator
Syncfusion Team
August 5, 2004 05:54 PM UTC
You can set gridControl1.RowCount and gridControl1.ColCount. Then you can loop through your data (whatever it is), and set values into the grid using an indexer,
//C#
this.gridControl1[row, col].CellValue = yourDataForCellAtRowCol;
''VB
me.gridControl1(row, col).CellValue = yourDataForCellAtRowCol
The first (top-left) non-header cell in the grid is row = 1, col = 1.
The row loop would be from 1 to grid.RowCount and the col loop would be from 1 to grid.ColCount.
Now there are other ways you can do this. But this is the most straight-forward way.