Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1402
  • Last Modified:

Add Nodes to datagridview+C#

How i can add nodes to datagridview in c#.
0
MKItani
Asked:
MKItani
  • 4
  • 2
1 Solution
 
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
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
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
 
Gene_CypCommented:
MKItani: well, did you get it done?
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.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now