Hello, I am Kinjal.
I have started to learn about enter key event.
Now I wanna Do in Gridview directly.
Like,
Suppose There are 4 Columns in GridView withOut Connection of Database.
Product, Quantity, Rate, Amount
1) When I press the enter key after getting data focus has to go on next cell.
2) On Column "Amount" I want data of multiplication of "Rate" and "Quantity".
3) When data filled up on Amount Column after that pressing on Enter key and has to generate new row.
I want this type of Features in gridview.
If Know then please help me to solve.

Laxmidhar SahooRank #383 · 6.6K reputationPosted Oct 3, 2018, 8:25 PM EDT
DataGridViewCelldoesn’t have any events, but you can listen for theKeyDownevent on theDataGridViewitself and then look at which cell is selected:public void dataGridView_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F1) //here enter { var selectedCell = dataGridView.SelectedCells[0]; } }