DataGridView: 'cannot convert from method group to keys
问题 I have a WinFormApp with a datagridview and I'm trying to write a method which does something when you press enter on the selected row. For example - the gridview displays some data from my database and it has 4 columns, after you finish editing those columns the way you like, you press enter and the data will be saved in the database with the new values. Currently I have this in my Form1() dataGridView1.PreviewKeyDown += new PreviewKeyDownEventArgs(dataGridView1_PreviewKeyDown); which I dont