Add Nodes to datagridview+C#

How i can add nodes to datagridview in c#.
MKItaniAsked:
Who is Participating?
 
Gene_CypCommented:
MKItani: well, did you get it done?
0
 
Gene_CypCommented:
When you say nodes, you mean to

add a new row?
add a datagridview to an existing datagridview?
0
 
MKItaniAuthor Commented:
what i means is add rows of types node that i can expand and collapse a set of rows

thank u gene cyp
i am waiting for your response.
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
MKItaniAuthor Commented:
thank u Gene Cyp,

i used the first link and i have added this component to my project but the question is how i can use it,
i found this 3 steps:
3 simple steps
- Add the component to the designer or create it in runtime
- Set its DataGridView property to any existing databound DataGridView
-In runtime set the GroupOn property or call any of the SetGroupOn methods to start grouping

but i didn't understand please can u send me a clear instructions.
0
 
Gene_CypCommented:
1) add the component:

If you install introduce that project into your project as a sub-project, when you update your overall project a new Control will be added to your Visual Studio that will have the name:  DataGridViewGrouper

Drag one such control into your form.

2)   Set its DataGridView property to any existing databound DataGridView

myDataGridViewGrouper  (or whatever name you gave it, just like you name a DataGridView)

Subro.Controls.DataGridViewGrouper myDataGridViewGrouper = new Subro.Controls.DataGridViewGrouper(dataGridView1);

3) myDataGridViewGrouper.SetGroupOn("NameOfThePropertyToGroupOn");

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.