V
vallabh naidu via .NET 247
(Type your message here)
--------------------------------
From: vallabh naidu
Hi everyone,
I have a typical problem, I dont weather what i am writing iscorrect or not but I just want to filter the dataview and heregoes the code but that code below is not filtering according tothe condition... eagarly waiting for a positive result from anyof you people.
Dim myfilter As String = "Parent_Org ='" & e.Node.Tag &"'"
Dim DVOrg As New DataView(dt, myfilter, "ORG_Cd",DataViewRowState.ModifiedCurrent)
Dim dr As DataRow
Dim SelNode As TreeNode = e.Node
If DVOrg.Table.Rows.Count > 1 Then
For Each dr In DVOrg.Table.Rows
Dim Nd As New TreeNode
Nd.Text = dr("ORG_Cd") + " " + dr("UDOrg_cd") + "" + dr("ORG_DESC")
Nd.Tag = dr("ORG_Cd")
SelNode.Nodes.Add(Nd)
Next
End If
--------------------------------
From: vallabh naidu
Hi everyone,
I have a typical problem, I dont weather what i am writing iscorrect or not but I just want to filter the dataview and heregoes the code but that code below is not filtering according tothe condition... eagarly waiting for a positive result from anyof you people.
Dim myfilter As String = "Parent_Org ='" & e.Node.Tag &"'"
Dim DVOrg As New DataView(dt, myfilter, "ORG_Cd",DataViewRowState.ModifiedCurrent)
Dim dr As DataRow
Dim SelNode As TreeNode = e.Node
If DVOrg.Table.Rows.Count > 1 Then
For Each dr In DVOrg.Table.Rows
Dim Nd As New TreeNode
Nd.Text = dr("ORG_Cd") + " " + dr("UDOrg_cd") + "" + dr("ORG_DESC")
Nd.Tag = dr("ORG_Cd")
SelNode.Nodes.Add(Nd)
Next
End If