private string GetComment(string columnName, int rowIndex) { CommentCoordinates coordinates = new CommentCoordinates(rowIndex, columnName); if (comments.ContainsKey(coordinates)) { return(comments[coordinates]); } else { return(String.Empty); } }
private void popupControlContainer1_CloseUp(object sender, EventArgs e) { CommentCoordinates coordinates = new CommentCoordinates(gridView1.GetFocusedDataSourceRowIndex(), gridView1.FocusedColumn.Name); if (String.IsNullOrEmpty(memoEdit1.Text)) { if (comments.ContainsKey(coordinates)) { comments.Remove(coordinates); } } else { comments[coordinates] = memoEdit1.Text; memoEdit1.Text = String.Empty; } }