Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
sergiokml  
#1 Posted : Friday, July 12, 2019 8:02:47 AM(UTC)
sergiokml

Rank: Newbie

Groups: Registered
Joined: 7/4/2019(UTC)
Posts: 6
Location: Santiago

Hello, it is my first time using the software and my English is not very good, I will try to explain myself.

I have a list of complex objects that I want to show in the grid. Some fields of the object will go in the first row and other fields in the second row, so for the whole list. Could you help me find the best solution?

Thank you

http://prntscr.com/odyii5
Igor/10Tec  
#2 Posted : Friday, July 12, 2019 3:07:34 PM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 1,101

Thanks: 15 times
Was thanked: 141 time(s) in 141 post(s)
It's impossible to incorporate two tree columns into the same grid because the two parent nodes in the same row can have different child row sets in the general case.

Most likely, you need to find another representation for your data.
sergiokml  
#3 Posted : Friday, July 12, 2019 6:51:28 PM(UTC)
sergiokml

Rank: Newbie

Groups: Registered
Joined: 7/4/2019(UTC)
Posts: 6
Location: Santiago

Originally Posted by: Igor/10Tec Go to Quoted Post
It's impossible to incorporate two tree columns into the same grid because the two parent nodes in the same row can have different child row sets in the general case.

Most likely, you need to find another representation for your data.


ok thank you, I've decided to remove the second tree so that the first tree shoots both secondary data. How would it be then?
Igor/10Tec  
#4 Posted : Saturday, July 13, 2019 7:23:16 AM(UTC)
Igor/10Tec

Rank: Administration

Groups: Administrators, Forum Moderator
Joined: 1/17/2011(UTC)
Posts: 1,101

Thanks: 15 times
Was thanked: 141 time(s) in 141 post(s)
If you ask about a code snippet you can use as a basis for your development, you can find it in the electronic documentation and the iGrid manual in the PDF format. Find the Tree Functionality section - it describes the process of building trees in iGrid. Below is a part of the example:

Code:
// Var to reference the last added row
iGRow myRow;

// Create one column for our tree
iGrid1.Cols.Add("Tree", 200);

// Add the first root node
myRow = iGrid1.Rows.Add();
myRow.Level = 0;
myRow.TreeButton = iGTreeButtonState.Visible;
myRow.Cells[0].Value = "Root node";

// Add two child nodes to the root without nested items
myRow = iGrid1.Rows.Add();
myRow.Level = 1;
myRow.TreeButton = iGTreeButtonState.Hidden;
myRow.Cells[0].Value = "Child node 1";

myRow = iGrid1.Rows.Add();
myRow.Level = 1;
myRow.TreeButton = iGTreeButtonState.Hidden;
myRow.Cells[0].Value = "Child node 2";

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.