count = (DropDownList) skin.FindControl("Country");
count.DataSource = GetLanguage.GetStringArr("Item");//这里返回一个数组string[2][]
count.DataTextField =;//绑定数组第一列
count.DataValueField = ;//绑定数组第二列
count.DataBind();
如何写呢?
先定义一个DataTable
再把你返回的数组添加到DataTable里
再绑定DropDownList控件。
DataTable dt;
dt.Add("a");
dt.add("b");
count.DataSource =dt;
count.DataTextField ="a";//绑定数组第一列
count.DataValueField ="b";//绑定数组第二列
count.DataBind();
把你返回的数组用一个for语句一个一个加到你新增列中,就可以了。