MKItani
asked on
Add Nodes to datagridview+C#
How i can add nodes to datagridview in c#.
ASKER
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.
thank u gene cyp
i am waiting for your response.
ASKER
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.
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.
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.DataGridVie wGrouper myDataGridViewGrouper = new Subro.Controls.DataGridVie wGrouper(d ataGridVie w1);
3) myDataGridViewGrouper.SetG roupOn("Na meOfThePro pertyToGro upOn");
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.DataGridVie
3) myDataGridViewGrouper.SetG
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
add a new row?
add a datagridview to an existing datagridview?