有C#写一个树型结构的导向栏,就想csd.net 左边的可收放的导航栏,它是关键词

解决方案 »

  1.   

    用动态生成表格来实现.
    for(int firstCount = 0; firstCount < DsTfirst_dwdm.Tables["T_DWDM"].Rows.Count; firstCount++)
    {
    System.Web.UI.WebControls.TableRow Tr_first = new TableRow();
    System.Web.UI.WebControls.TableCell Tc_first = new TableCell(); System.Web.UI.WebControls.Label Labfirst = new Label();
    Labfirst.Width = 50;Labfirst.Text = "";
    Tc_first.Controls.Add(Labfirst);
    ..............
      

  2.   

    用TreeView这个控件呀.......你想干什么????
      

  3.   

    [email protected]
    先谢谢过了!
      

  4.   

    [email protected] 谢谢了啊!
      

  5.   

    [email protected]
    能给我发一份吗?