Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Add Nodes to datagridview+C#

Posted on 2011-03-11
6
Medium Priority
?
1,331 Views
Last Modified: 2012-05-11
How i can add nodes to datagridview in c#.
0
Comment
Question by:MKItani
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 7

Expert Comment

by:Gene_Cyp
ID: 35107108
When you say nodes, you mean to

add a new row?
add a datagridview to an existing datagridview?
0
 

Author Comment

by:MKItani
ID: 35107122
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:MKItani
ID: 35107651
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
 
LVL 7

Expert Comment

by:Gene_Cyp
ID: 35107979
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
 
LVL 7

Accepted Solution

by:
Gene_Cyp earned 2000 total points
ID: 35415100
MKItani: well, did you get it done?
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question