RadComboBox 的 DataTextField 问题
RadComboBox's DataTextField Issue
我有一个 RadComboBox
,我正在从我的 vb
代码中绑定数据,如下所示:-
RadComboBox.DataTextField = "Value1"
RadComboBox.DataValueField = "Value2"
RadComboBox.DataSource = BindComboBox("Colors") -------This is my internal funcion where i call a procedure.
RadComboBox.DataBind()
RadComboBox.Items.Insert(0, New RadComboBoxItem("All", "All"))
但现在我想保留 DataTextField
如下:-
RadComboBox.DataTextField = "Value1" + "-" + "Value2"
现在如何做到这一点?我在下面的帖子中读到了这个:-
但我不清楚如何实现!谁能帮忙,谢谢!
尝试在 RadComboBox 的 ItemDataBound 事件中执行此操作,如下所示:
http://www.telerik.com/forums/using-multiple-columns-for-datatextfield#qYWCCiG3akiNRTTuVZEa6A
我有一个 RadComboBox
,我正在从我的 vb
代码中绑定数据,如下所示:-
RadComboBox.DataTextField = "Value1"
RadComboBox.DataValueField = "Value2"
RadComboBox.DataSource = BindComboBox("Colors") -------This is my internal funcion where i call a procedure.
RadComboBox.DataBind()
RadComboBox.Items.Insert(0, New RadComboBoxItem("All", "All"))
但现在我想保留 DataTextField
如下:-
RadComboBox.DataTextField = "Value1" + "-" + "Value2"
现在如何做到这一点?我在下面的帖子中读到了这个:-
但我不清楚如何实现!谁能帮忙,谢谢!
尝试在 RadComboBox 的 ItemDataBound 事件中执行此操作,如下所示: http://www.telerik.com/forums/using-multiple-columns-for-datatextfield#qYWCCiG3akiNRTTuVZEa6A