麻烦请假 如何在一个combox中显示treeview?急用,多谢了
答案:2 悬赏:40 手机版
解决时间 2021-01-04 01:36
- 提问者网友:欲望失宠
- 2021-01-03 18:18
麻烦请假 如何在一个combox中显示treeview?急用,多谢了
最佳答案
- 五星知识达人网友:酒醒三更
- 2021-01-22 06:18
…");
}
private void InitList(DropDownList ddlID, int parentID, DataTable catagoryDT, string indent)
{
/ count; i++)
{
catagoryRow = currRows[i];
System;
int count = currRows.Length;根目录"在combox中显示treeview;
for (int i = 0; i <,", Int32.Parse(catagoryRow["id"].ToString()), catagoryDT, indent + "…".UI.WebControls.ListItem item = new System,这个功能,我没有实现过的..UI.WebControls.ListItem(indent + catagoryRow["group_name"].ToString().
我能给你提供一段在Dropdownlist中实现Treeview的代码..
不好意思...Select("pid=" + parentID.ToString();
InitList(this, "pid ASC"
this.DropDownList1.Items.Add(new ListItem(",你来看看,具体什么意思,只能你来分析了;).., 1, dt, ".DropDownList1.
private void bindDropList()
{
this.DropDownList1.Items.Clear();
DataTable dt = this.GetUserGroup();1"));), catagoryRow["id"].ToString());
ddlID.Items.Add(item);
InitList(ddlID.Web.DataRow[] currRows = catagoryDT.Web;
DataRow catagoryRow;/Select后边的是DataSet里面的列名
System.Data
}
private void InitList(DropDownList ddlID, int parentID, DataTable catagoryDT, string indent)
{
/ count; i++)
{
catagoryRow = currRows[i];
System;
int count = currRows.Length;根目录"在combox中显示treeview;
for (int i = 0; i <,", Int32.Parse(catagoryRow["id"].ToString()), catagoryDT, indent + "…".UI.WebControls.ListItem item = new System,这个功能,我没有实现过的..UI.WebControls.ListItem(indent + catagoryRow["group_name"].ToString().
我能给你提供一段在Dropdownlist中实现Treeview的代码..
不好意思...Select("pid=" + parentID.ToString();
InitList(this, "pid ASC"
this.DropDownList1.Items.Add(new ListItem(",你来看看,具体什么意思,只能你来分析了;).., 1, dt, ".DropDownList1.
private void bindDropList()
{
this.DropDownList1.Items.Clear();
DataTable dt = this.GetUserGroup();1"));), catagoryRow["id"].ToString());
ddlID.Items.Add(item);
InitList(ddlID.Web.DataRow[] currRows = catagoryDT.Web;
DataRow catagoryRow;/Select后边的是DataSet里面的列名
System.Data
全部回答
- 1楼网友:躲不过心动
- 2021-01-22 07:05
期待看到有用的回答!
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯