I\'v got some problem, I use DataTable to store my data in dataGridView. Data was inputed like this:
dt = new DataTable(); dt.Columns.Add(\"ID\", typeof(int)
Try the SetField method:
table.Rows[i].SetField(column, value); table.Rows[i].SetField(columnIndex, value); table.Rows[i].SetField(columnName, value);
table.Rows[i].SetField(column, value);
table.Rows[i].SetField(columnIndex, value);
table.Rows[i].SetField(columnName, value);
This should get the job done and is a bit "cleaner" than using Rows[i][j].