1. 数据绑定
复制代码 代码如下:
Source = ategories();
ValueField = "id";//用来设置下拉列表选中的. Value 值
TextField = "name";//为下拉列表选项显示的值
Bind();
2.读取数据
复制代码 代码如下:
int categoryId = e(e);//获取下拉列表中选中的值
1. 数据绑定
复制代码 代码如下:
Source = ategories();
ValueField = "id";//用来设置下拉列表选中的. Value 值
TextField = "name";//为下拉列表选项显示的值
Bind();
2.读取数据
复制代码 代码如下:
int categoryId = e(e);//获取下拉列表中选中的值