Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can i make a TreeGridView ?
Message
From
01/06/2011 03:40:53
 
 
To
28/05/2011 03:42:07
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01512140
Message ID:
01512416
Views:
49
Hello Craig Berntson,
I already can use TreeGridView , but i want to additional DataGridViewCheckBoxColumn in this.And i try some of code same
DataGridView inert the DataGridViewCheckBoxColumn. That is ok , but the checkbox can not click , how can i do , may you help to me, thank you ?
 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'WilsonDataSet.funclib' table. You can move, or remove it, as needed.
        Me.FunclibTableAdapter.Fill(Me.ADataSet.funclib)
        treeGridView1.Nodes.Clear()
        treeGridView1.Columns.Clear()

        'set some properties
        treeGridView1.IsOneLevel = toolStripButton4.Checked 'not used in hierarchical
        treeGridView1.ImageIndexParent = 0
        treeGridView1.ImageIndexChild = 1

        treeGridView1.IDColumnName = "seqno"
        treeGridView1.ParentIDColumnName = "parentid"
        treeGridView1.UseParentRelationship = True


        Dim qs As String = "SELECT seqno, funcname,parentid  FROM funclib"
        connection()
        cn.Open()
        da = New SqlDataAdapter(qs, cn)

        da.Fill(ADataSet, "funclib")



        treeGridView1.DataSource = ADataSet.funclib 

        Dim columnCheckbox As DataGridViewCheckBoxColumn = New DataGridViewCheckBoxColumn()
        columnCheckbox.Name = "right"
        columnCheckbox.ReadOnly = False
        treeGridView1.Columns.Insert(3, columnCheckbox)


    End Sub
Previous
Reply
Map
View

Click here to load this message in the networking platform