Skip to content

Commit

Permalink
Update MainForm.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
hellzerg committed Feb 2, 2022
1 parent beecf24 commit 9a0894a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lain/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,10 @@ private void AccountView_CellMouseDown(object sender, DataGridViewCellMouseEvent
if (e.Button == MouseButtons.Right && e.RowIndex != -1)
{
DataGridViewRow row = AccountView.Rows[e.RowIndex];

AccountView.CurrentCell = row.Cells[e.ColumnIndex == -1 ? 1 : e.ColumnIndex];
row.Selected = true;

AccountView.Focus();
}
}
Expand Down

0 comments on commit 9a0894a

Please sign in to comment.