vb.net - TreeView parent and leaf nodes of their root node -


Text after "div class =" itemprop = "text">

I have a hierarchy

  Season 1 with a field 1 Field 1 field with a tree view 2 crop show data in gridview with 1 crop 2 Farm 2 field 1 field 2 crop 1 crop 2  

and a GridView displays data against treeview node selected value.I use SQLDataSource following code and query

  dim cmd as OleDbCommand = new OleDbCommand () TreeView1.SelectedNode.Depth = 0 then select the SqlDataSource1.SelectCommand = ( "V_FARMS * where SSN_id = '' if & amp ; TreeView1.Selected Node. Price & amp; " '") elseif TreeView1.SelectedNode.Depth = 1 then SqlDataSource1.SelectCommand = ( "Choose V_FARMS * where FRM_id =' '& amp; TreeView1.SelectedNode.Value & amp;"' ") elseif TreeView1.SelectedNode.Depth = 2 then SqlDataSource1.SelectCommand = ( "Choose V_FARMS where FLD_id = '" & amp; & Tree View 1. selected node. value and amp; "'") Elesef Tree VI 1. Selected node. Deepy & gt; 2 Then select the SqlDataSource1.SelectCommand = ( "V_FARMS * where CRP_id = '' & amp; TreeView1.SelectedNode.Value & amp;" ' ") End If  

The problem now is that when I selected season 1 this season shows data against 1 OK. but when I Farm1 then select form 1 against the form season 1 1 and are also treated Fields values ​​same.How Together I can show the data of each node against my top parant node and root node etc. All data against all data

I suspect you are not using a diphout property. Each node Try to identify different values ​​of or maybe try to write the SQL statement in the tag of each node, when you try things.


Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -