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 class Communication { private string name;
------------------------------------------------------------
and i am binding a collection of devices to my xamdatagrid and the resulting grid will look like as follows..
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 ....
hello stefan
tanx for reply
i use infragistics.wpf3.v10.dll because my solution is wpf 3.5(visual studio 2008)
my .XAML
<CaspGridView x:Name="igGrid" Height="200" Margin="44,56,85,56" Theme="LunaOlive" > <CaspGridView.FieldSettings> <dp:FieldSettings AllowEdit="False" AllowGroupBy="True" AllowSummaries="True" /> </CaspGridView.FieldSettings> <CaspGridView.FieldLayoutSettings> <dp:FieldLayoutSettings AutoGenerateFields="True" HeaderPrefixAreaDisplayMode="FieldChooserButton" AllowAddNew="True" /> </CaspGridView.FieldLayoutSettings> <CaspGridView.FieldLayouts > <dp:FieldLayout > <dp:Field Name="SKU" /> <dp:Field Name="Name" /> <dp:Field Name="Category" /> <dp:Field Name="Supplier" /> </dp:FieldLayout> </CaspGridView.FieldLayouts> </CaspGridView>
Hello Saman,
Thank you for your post. I have been looking into it and I can say that by design this is the way XamDataGrid shows this kind of data. If you send me ascreenshot of the desired result I will be able to log a product idea on your behalf.
Looking forward for your reply.
hi friend
i serach very much but i cant finding a suitable place for write my problem . excuse me
i want to bind a ObservableCollection<ObservableDictionary<String, Object> to xamdataGrid .
does binding but
not correct showing
Name - category -SKu my field (column) but(show inage upload) ...
can you help me
tanx
Hello Jafar,
Thank you for your post. I have been looking into I and I can suggest you see this forum thread:
http://es.infragistics.com/community/forums/p/23298/85318.aspx
where a similar issue is discussed.
Hope this helps you.