开发者

Cell click event for unbound columns in datagridview

开发者 https://www.devze.com 2023-03-30 01:52 出处:网络
I want to display three comboboxz in a single cell of datagridview for a single column say date. I want to represent a list for day, month a开发者_C百科nd year each.You must implement a custom control

I want to display three comboboxz in a single cell of datagridview for a single column say date. I want to represent a list for day, month a开发者_C百科nd year each.


You must implement a custom control for grouping the three comboboxes then implement a custom grid column style for hosting the control, like described here:

How to: Host Controls in Windows Forms DataGridView Cells

(incidentally, the linked tutorial describes how to host a calendar control, which you may want to consider instead of the three comboboxes)

0

精彩评论

暂无评论...
验证码 换一张
取 消