简体   繁体   中英

how to dropdown combobox automatically in datagridview

当用户在datagridview中单击comboBoxCell时,如何自动显示下拉项?

您可以设置组合框的GotFocus事件,但必须获取组合框实例句柄,并可以使用它:

myComboBox.GotFocus += (s, e) => ((ComboBox)s).DroppedDown = true;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM