绑定到Arraylist [英] Binding to Arraylist
本文介绍了绑定到Arraylist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在将Combobox绑定到Arraylist,我想设置Combobox的ValueMember
和DisplayMember属性。这可能,或者我需要绑定到DataTable吗?
谢谢
I''m binding a Combobox to an Arraylist, and I''d like to set the ValueMember
and DisplayMember properties of the Combobox. Is this possible, or do I
need to bind to a DataTable?
Thanks
推荐答案
是的,你可以绑定到存储在
arraylist中的类中包含的任何属性。
Ken
----------------------
" Michael C#" < xy*@abcdef.com>在消息中写道
新闻:Xt ***************** @ fe08.lga ...
我是将Combobox绑定到Arraylist,我想设置Combobox的ValueMember
和DisplayMember属性。这可能,或者我需要绑定到DataTable吗?
谢谢
Hi,
Yes you can bind to any property contained in a class stored in the
arraylist.
Ken
----------------------
"Michael C#" <xy*@abcdef.com> wrote in message
news:Xt*****************@fe08.lga...
I''m binding a Combobox to an Arraylist, and I''d like to set the ValueMember
and DisplayMember properties of the Combobox. Is this possible, or do I
need to bind to a DataTable?
Thanks
>
" Michael C#" < xy*@abcdef.com> schrieb:
"Michael C#" <xy*@abcdef.com> schrieb:
我将Combobox绑定到Arraylist,我想设置Combobox的
ValueMember和DisplayMember属性。这是
可能
I''m binding a Combobox to an Arraylist, and I''d like to set the
ValueMember and DisplayMember properties of the Combobox. Is this
possible
是的。
-
MS Herfried K 。瓦格纳
MVP< URL:http://dotnet.mvps.org/>
VB< URL:http://classicvb.org/petition/ >
Yes.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
谢谢
" Ken Tucker [MVP]" < VB *** @ bellsouth.net>在消息中写道
news:%2 *************** @ TK2MSFTNGP15.phx.gbl ...
Thank you
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
是的,你可以绑定到存储在
arraylist中的类中包含的任何属性。
Ken
---------- ------------
Michael C# < xy*@abcdef.com>在消息中写道
新闻:Xt ***************** @ fe08.lga ...
我正在将一个Combobox绑定到一个Arraylist,并且我想设置Combobox的
ValueMember
和DisplayMember属性。这是可能的,还是我需要绑定到DataTable?
谢谢
Hi,
Yes you can bind to any property contained in a class stored in the
arraylist.
Ken
----------------------
"Michael C#" <xy*@abcdef.com> wrote in message
news:Xt*****************@fe08.lga...
I''m binding a Combobox to an Arraylist, and I''d like to set the
ValueMember
and DisplayMember properties of the Combobox. Is this possible, or do I
need to bind to a DataTable?
Thanks
这篇关于绑定到Arraylist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文