I use something like this, see if it helps
grid.SetRows(4);
grid.SetCols(3);
...
...
grid.SetRow(1);
grid.SetCol(1);
grid.SetText("Row1Col1");

grid.SetRow(1);
grid.SetCol(2);
grid.SetText("Row1Col2");
...

Now, I am posting a question titled "MSFlexGrid- Keyboard navigation", pls see if you can answer that.