Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to set treeview Nodes checked property is true?

How to set treeview Nodes checked property is true?

Scheduled Pinned Locked Moved ASP.NET
questiondatabasetutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kripa21
    wrote on last edited by
    #1

    I have 1 treeView for category & subcategory. It is filling by database. I saved all checked nodes value of treeview control in table "AvailableSubCategory" Now, I want to make a modification in data, So that, I want to check only that subcategory Nodes of TreeView, that are in "AvailableSubCategory" table. How can I do this?

    M P 2 Replies Last reply
    0
    • K kripa21

      I have 1 treeView for category & subcategory. It is filling by database. I saved all checked nodes value of treeview control in table "AvailableSubCategory" Now, I want to make a modification in data, So that, I want to check only that subcategory Nodes of TreeView, that are in "AvailableSubCategory" table. How can I do this?

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      kripa ostwal wrote:

      So that, I want to check only that subcategory Nodes of TreeView, that are in "AvailableSubCategory" table. How can I do this?

      How is this related to ASP.Net?

      Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

      1 Reply Last reply
      0
      • K kripa21

        I have 1 treeView for category & subcategory. It is filling by database. I saved all checked nodes value of treeview control in table "AvailableSubCategory" Now, I want to make a modification in data, So that, I want to check only that subcategory Nodes of TreeView, that are in "AvailableSubCategory" table. How can I do this?

        P Offline
        P Offline
        padmanabhan N
        wrote on last edited by
        #3

        your question was not clear... :doh: :doh:

        Padmanabhan My Articles[^]

        K 1 Reply Last reply
        0
        • P padmanabhan N

          your question was not clear... :doh: :doh:

          Padmanabhan My Articles[^]

          K Offline
          K Offline
          kripa21
          wrote on last edited by
          #4

          Sir, I want to ckeck some childnode from TreeView, which have category(nodes of treeview) and subCategories(nodes of category nodes) information. When user click on btnModify, I want to show all details on page from database (whatever subCategories he selected at save time) In database I stored values of checked subCategories(at the time of Save record. For that I Used following code to get selected Nodes values For intCnt = 0 To TreeView1.CheckedNodes.Count - 1 arrSubCat(intCnt) = (TreeView1.CheckedNodes(intCnt).Value) Next Then I stored that onebyone in database At the time of modification, I retrive that subCategory values in object of datatable. Now I want to show checkmarks for those subCategories nodes, where values will match. For that i wrote, If objDT.Rows.Count > 0 Then For intCnt = 0 To objDT.Rows.Count - 1 TreeView1.FindNode(objDT.Rows(intCnt).Item (0).ToString).Checked = True Next End If But It gives error s Index Out of bound

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups