在列的每一行中添加用于选择颜色的下拉菜单 [英] Adding a drop-down menu for selection color in each row of a column

查看:66
本文介绍了在列的每一行中添加用于选择颜色的下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows窗体中使用了SplitContainer,该窗体有两个DataGridView(DataGridView1和DataGridView2).在DataGridView1中,(在下面的屏幕截图的左侧)有5列.这些列之一称为颜色".我要在颜色"列中 在每行中添加用于选择颜色的下拉菜单.最简单的方法是什么?

I have used SplitContainer in a windows form and this form has two DataGridView (DataGridView1 and DataGridView2). In DataGridView1, (on the left of the screenshot below) there are 5 columns. One of those columns is named Color. In the Color column, I want to add a drop-down menu for selection color in each row. What is the easiest way to do that?

PS我正在使用VS Express2012.

PS I am using VS Express 2012.

失败

推荐答案

您似乎有一个解决方案
As you seem to have a solution here, it would be prudent to see what you have came up with on your own so far rather than us attempting to assist not knowing what you have tried. If you have not tried than it would be a good idea to make the initial effort and present the code and details where you are stuck on. More details are better than little or no code details.


这篇关于在列的每一行中添加用于选择颜色的下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆