In this article we would like to tell you about a beautiful grid control for the .NET Framework, iGrid.NET. It seems, it is the easiest and versatile unbound grid you can find on the market. You can also use this component as a powerful adjustable replacement for the standard .NET DataGrid and DataGridView controls on the Windows Forms using any .NET language (C#, VB.NET, MS VC++.NET, etc).
Populating the grid
Well, let’s start to use it. iGrid.NET is a cell matrix, and to get it working, you simply create the required number of columns and rows and then assign values to iGrid.NET’s cells:
iGrid1.Cols.Count = 3;
iGrid1.Rows.Count = 5;
iGrid1.Cells[2, 0].Value = “Test value”;
iGrid1.Cells[3, 0].Value = 12345;
The code above creates a grid with 3 columns and 5 rows and changes the values in its two cells.
Notice how easily you can access each cell through the Cells collection. The Cols and Rows collections are used the same way to access iGrid’s columns and rows. Also notice that we store values of different data types in cells of the same column without any additional work.
Now let’s create a more complex grid:
for(int i=0; i