Solved

Add Nodes to datagridview+C#

Posted on 2011-03-11
6
1,245 Views
Last Modified: 2012-05-11
How i can add nodes to datagridview in c#.
0
Comment
Question by:MKItani
  • 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
 
LVL 7

Expert Comment

by:Gene_Cyp
ID: 35107438
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

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 500 total points
ID: 35415100
MKItani: well, did you get it done?
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now