private void AddFsEntriesGridImageCellToDictnr( Dictionary <FsEntriesGridColumn, DataGridViewCell> rowCellsDictnr, FsEntriesGridColumn fsEntriesGridColumn, Bitmap cellImage) { var cell = new DataGridViewImageCell(); cell.Value = cellImage; rowCellsDictnr.Add(fsEntriesGridColumn, cell); }
private void AddFsEntriesGridCheckBoxCellToDictnr( Dictionary <FsEntriesGridColumn, DataGridViewCell> rowCellsDictnr, FsEntriesGridColumn fsEntriesGridColumn, bool isChecked) { var cell = new DataGridViewCheckBoxCell(); cell.Value = isChecked; rowCellsDictnr.Add(fsEntriesGridColumn, cell); }
private void AddFsEntriesGridTextCellToDictnr( Dictionary <FsEntriesGridColumn, DataGridViewCell> rowCellsDictnr, FsEntriesGridColumn fsEntriesGridColumn, string cellText) { var cell = new DataGridViewTextBoxCell(); cell.Value = cellText; rowCellsDictnr.Add(fsEntriesGridColumn, cell); }
private void SetCurrentRow( int currentRowIndex, int currentCellIndex, bool unMarkPrevCurrent = true) { FsEntriesGridColumn fsEntriesGridColumn = (FsEntriesGridColumn)currentCellIndex; var isDifferentRow = SetDataGridRowBackColor( CurrentRowIndex, () => CurrentRow.IsChecked ? dataGridCellCheckedBackColor : dataGridCellBackColor, () => unMarkPrevCurrent && currentRowIndex != CurrentRowIndex); CurrentRowIndex = currentRowIndex; CurrentRow = EditableDataGridValueRows[currentRowIndex]; CurrentCellIndex = currentCellIndex; CurrentCell = fsEntriesGridColumn; SetDataGridRowBackColor( currentRowIndex, () => CurrentRow.IsChecked ? dataGridCellCheckedCurrentBackColor : dataGridCellCurrentBackColor, () => true); }