I need to write a simple function that when the person enter number of boxes then keypress event fired and number of boxes*someamount get in to the amount column. I have added datagridview using drag and drop control

I think so code will be written here according to my research
private void dataGridView1_EditingControlShowing(object sender,
DataGridViewEditingControlShowingEventArgs e) {
}
But i dont know how to put Keyup event and access column numberofboxes and Amount. Thanks
I’ve tested this and it works by using the key down event and multiples the
NumberBoxesvalue bysomeAmount, each time you enter a new number in the cell it does the calculation for you automatically.