private void dgvBookmarks_UserDeletedRow(object sender, DataGridViewRowEventArgs e) { if (rowIndex >= 0 && rowIndex < _bookmarks.Count) { _bookmarks.RemoveAt(rowIndex); } }