I've created a DataGridView through the UI, so all of my columns have
been added. My problem is that I can't quite figure out how to add a row to
it through code. I've tried calling CreateCells(), and this does work, but I
lose the column names for each row. When I go to reference the data in the
grid with dgv.Rows[0].Cells["type"], this fails with an error saying there
is no column with that name.
What do I need to do to be able to use the string column name instead of
the index?
Thanks,
Anthony
--
Product Availability Developer
Invensys Avantis - www.avantis.net