values.Add(Convert.ToDouble(dataGridView.Rows[j].Cells[i].Value)); 这段代码只能对输入数值类型的值进行操作,如果dataGridView输入字符类型的,就报错!
I am working on my first WinForms application in C#, after spending about a year on ASP.NET with C#. All I need help with is how to fire an event when a user selects a different row in a dataGrid.