Hi,


I have been trying to do something similar, but haven't seem to get it to work. I have read many posts that does similar functions as what I am trying to accomplish. I have tried their approach but it will not display the selected datatable inside of a datagrid because I am confused on the following:

1: How would I be able to display the appropriate data inside of the datatable in a DataGrid based on the value that the user select.

I am able to figure out what node the user has double-clicked. But I need help with displaying the data for the selected datatable.


Here is the code which I have for obtaining the value of the node that the user has selected. Any help would be greatly appreciated. thanks
I am using [VB.NET 2003]

Code:
   Private Sub TreeView1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles TreeView1.DoubleClick
        Dim Node_Value As Integer

        'Loop through the entire range and select the 
        For i As Integer = 0 To 10
            If (TreeView1.SelectedNode.Text = i) Then

                '
                Node_Value = TreeView1.SelectedNode.Text

            End If
        Next

        '''''''
        '''''''
        '''''''Now display the appropriate datatable that is inside of the Database
        '''''''
        '''''''

    End Sub

Any help is greatly appreciated. thanks

-Srig