在组合框中创建列下拉菜单 [英] Creating columns in combo box drop down

查看:80
本文介绍了在组合框中创建列下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi

我正在使用Visual Studio 2008在C#中处理桌面应用程序.我想修改ComboBox,以便在下拉菜单时可以显示多个列.
(例如,在组合框"中,我允许用户选择一个客户端名称.但是由于相同的客户端名称在列表中重复出现,因此用户很难选择正确的客户端.因此,用户要求显示与该客户端平行的父亲名称下拉组合框时在另一列中命名.)

请尽快回复我.

hi

I am working on a desktop application in C# using Visual Studio 2008. I want to modify ComboBox so that it could show multiple columns when drop down.
(For example in one of Comboxes I allow the user to select a Client Name. But due to same Client names repeating in the list it is difficult for user to select the right client. So user asks to show the Father name parallel to the client name in another column when dropping down the combo box.)

Please reply me soon.

推荐答案

在此网站上查看,有几种不同的方法可以实现此目的...

这篇文章很好看

多列组合框 [
Have a look on this site, there are a few different ways to do this...

This article looks pretty good

Multi-Column ComboBox[^]


看看 ^ ],请参见代码项目.

在这里询问之前,始终值得搜索文章部分. :)

如果您不喜欢那样的话,请在互联网上搜索.有很多示例.
Take a look at Multi Column ComboBox[^] from here on The Code Project.

It is always worth searching the articles section before asking here. :)

If you don''t like that one then search the internet. There are loads of examples.


这篇关于在组合框中创建列下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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