给combobox添加值的问题,各位请进~~
kapil 2005-04-26 01:19:15 这样可以添加元素:
=============================
for( int i = 0; i < this.ds.Tables[table_name].Rows.Count; i++)
{
cb.Items.Add(this.ds.Tables[table_name].Rows[i][1].ToString());
}
===============================
但是如果想给元素添加对应的值该怎么写呢?类似网页中的
“<select><option value="xx">text</option></select>”中的xx
多谢~~