Exemple #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            DataView      dv = DBMaker.GetCity().DefaultView;
            StringBuilder sb = new StringBuilder();

            foreach (var item in treeViewForRoles1.Value)
            {
                sb.AppendFormat(" or Id = {0}", item);
            }
            dv.RowFilter = "1=2 " + sb.ToString();

            treeViewForRoles1.Fill(dv.ToTable(), "ParentId=0", treeView1);
        }
 private void button1_Click(object sender, EventArgs e)
 {
     treeView1.Fill(DBMaker.GetCity(), "ParentId=0");
 }
Exemple #3
0
 private void TreeViewForRolesDemo_Load(object sender, EventArgs e)
 {
     treeViewForRoles1.Fill(DBMaker.GetCity(), "ParentId=0");
 }
Exemple #4
0
 private void ComboboxTreeDemo_Load(object sender, EventArgs e)
 {
     comboboxTree1.Fill(DBMaker.GetCity(), "ParentId=0");
     comboBoxTree2.Fill(DBMaker.GetCity(), "ParentId=0");
 }