How to add a new row to datagridview programmatically
You can do: or: Another way: From: http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.rows.aspx
You can do: or: Another way: From: http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.rows.aspx
You’re not adding columns to your DataGridView Is it clear now why you get an exception? Add this line before you use columns to fix the error