Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions MyPluginControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,11 @@ private void dataGridView1_DataError(object sender, DataGridViewDataErrorEventAr
MessageBox.Show($"Error in column '{column.Name}' at row {e.RowIndex + 1}. Value '{value}' is not valid.");
}
}
private void dataGridViewMapping_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
if (new[] { 2, 4, 5 }.Contains(dataGridViewMapping.CurrentCell.ColumnIndex) && e.Control is ComboBox combo)
combo.DropDownStyle = ComboBoxStyle.DropDown;
}

#endregion Data Grid

Expand Down
3 changes: 3 additions & 0 deletions MyPluginControl.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.