Hello!
I have 5 objects:
object 1 is root, object 2 and 3 in subroot, objects 4,5 in subsubroot :)
here is the hierarchy:
object1
object2
object4
object3
object5
Is it possible to make this hierarchy in xamWebGrid?
Thank you.
Sorry, I`ve forgot to write some words.
object1 is root for objects2 and object3
object 4 is child for the object2
and object5 is child for object3
for example :
class1 { public object object2; public object object3;}
class2 { public object object4; }
class3 { public object object5;}
thank you.
Hello,
I can see no reason why this is not possible. You need to create a hierarchy of classes, where the parent has a property, which is a collection of sub objects. Something like this:
public class ParentObject
{
public List<SubObject> Sub { get; set; }
}
public class SubObject
public List<SubSubObject> SubSub { get; set; }
public class SubSubObject
public string ID { get; set; }
Set the AutoGenerateColumns="True" property of the XamWebGrid to true and you are all set