Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1715
XamDataGrid binding.
posted

hi,

i have a requirement of custom binding in xamdatagrid.the case is as follows

i have a data model called Device

public class Device
{
private string name;
private string type;

private List moduleList=new List();
private List communications=new List();
private List protections=new List();

}

------------------------------------------------

public class Module
{
private string name;

public string Name
{
get { return name; }
set { name = value; }
}
}

-------------------------------------------------

public class Protection
{
private string name;

public string Name
{
get { return name; }
set { name = value; }
}
}

----------------------------------------------------------

public class Communication
{
private string name;

public string Name
{
get { return name; }
set { name = value; }
}
}

------------------------------------------------------------

and i am binding a collection of devices to my xamdatagrid and the resulting grid will look like as follows..

  Protection Communication
Device Name Poles In Modules Ir tr Isd tsd Ii IN Ig tg Io IΔn tΔn Freq Class Iunbal Ijam tjam Cool fan FLA Reference IP Address Slave ID Baud rate Parity Stop Bit Connection status
IFM IFE FDM BCMT BSCM I/O 1 I/O 2
test device 3 60 Yes -- Yes -- Yes Yes Yes 60 16 OFF OFF 90   -- --   -- -- -- -- -- -- -- -- -- Gateway1 10.165.10.12 2 19200 None 2  
test device 2 3 400 -- Yes Yes -- -- Yes -- -- -- 1740 0.03 4800 OFF 80 0   -- -- -- 5 30% OFF OFF Auto 348 Network 10.165.10.122 -- -- -- --  

 modulelist ,protectionlist and communication list must be treated in single row  as device properties with respective group header.

is there any option to achive this feature ....