本文介绍了如何将下拉列表与表格列值绑定?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将下拉列表与表格列值绑定,
在我的表格中,我有3列,在第二列中,我必须绑定我的ddl,
在我将第二个col与ddl绑定之后,我在数据集中获得了表格,
如果您知道可以帮助我..

How we can Bind a dropdown with a table column values,
in my table i have 3 columns, in that 2nd column i have to bind with my ddl,
i get the table in dataset after that how i bind the 2nd col with ddl,
if u know help me..

推荐答案

myDropdown.Datasource = myDataset.Tables["myTable"];
myDropdown.DataValueField = "column2";
myDropdown.DataTextField = "column2";
myDropdown.Databind();



这篇关于如何将下拉列表与表格列值绑定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 21:13