Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户单击datagridview中的comboBoxCell时如何自动显示下拉项目?
您可以设置组合框的 GotFocus 事件,但您必须获取组合框实例句柄,然后您可以执行以下操作:
myComboBox.GotFocus += (s, e) => ((ComboBox)s).DroppedDown = true;