Almost certainly a problem arises because the DataGridView has lost focus. This may be due to the fact that another control in your form requires focus or your form is set by default to give a different control focus.
You can make the DataGridView have focus. If you want to emulate standard Microsoft Windows behavior that allows you to scroll the mouse wheel while the mouse is running over a control, simply use the code below.
private void SettingsGrid_MouseEnter(object sender, EventArgs e) { dataGridView1.Focus(); }
If you want to scroll the grid no matter which control has focus, then the code will be similar to the previous one with a small beak of settings.
source share