We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Draw a structure from table

Thread ID:





95035 Jun 17,2010 07:26 AM UTC Jun 21,2010 05:30 AM UTC WinForms 1
Tags: Diagram
Asked On June 17, 2010 07:26 AM UTC


I am new to syncfusion essential diagram. I am using the Syncfusion winforms diagram library.

My requirement is:

1) I want to draw structure from table(which is having the parent and child nodes).

2) After drawn the structure, if i change the nodes postion(changing the child node from one parent to another parent or adding new symbol(sub node)), these changes should be updated to my table.

Could you please provide some example to achive this requirement

Jaffersathick B [Syncfusion]
Replied On June 21, 2010 05:30 AM UTC


Thank you for contacting Syncfusion Support.

1) I want to draw structure from table :

You can draw structure from table by using the following code snippet:

DataTable dt;
Syncfusion.Windows.Forms.Diagram.Controls.Diagram d1 = dt.Rows[0]["Diagram"] as Syncfusion.Windows.Forms.Diagram.Controls.Diagram;

2) If I change the nodes position, these changes should be updated to my table:

You can update the changes to table by using the following code snippet:

DataTable dtNodes;
dtNodes = new DataTable();
for (int i = 0; i < diagram1.Model.Nodes.Count; i++)
dtNodes.Columns.Add(new DataColumn(string.Format("Node{0}", i), typeof(object)));

foreach (INode objINode0 in diagram1.Model.Nodes)
if (objINode0 is Node)
DataRow dr = dtNodes.NewRow();
for (int j = 0; j < diagram1.Model.Nodes.Count; j++)
dr[j] = objINode0;

Please refer to the sample in the following link which illustrates this:


Please try this and let me know if this helps.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon