I have a typed object which includes a second nested typed object. I want to show properties of the nested object on a data grid on a windows form.
Any suggestions?
So far, I have set up:
DataGridTableStyle tsl = new DataGridTableStyle();
tsl.MappingName = "ObjectA";
DataGridColumnStyle col1 = new DataGridTextBoxColumn();
col1.MappingName = "Prop1";
dataGrid1.TableStyles.Add(tsl);
Works fine for instances of objectA.Prop1.
ObjectB has a get property on objectA and I can get a column showing the whole object but wish to pick up individual properties from objectB.
Thanks in advance for your help!!
Any suggestions?
So far, I have set up:
DataGridTableStyle tsl = new DataGridTableStyle();
tsl.MappingName = "ObjectA";
DataGridColumnStyle col1 = new DataGridTextBoxColumn();
col1.MappingName = "Prop1";
dataGrid1.TableStyles.Add(tsl);
Works fine for instances of objectA.Prop1.
ObjectB has a get property on objectA and I can get a column showing the whole object but wish to pick up individual properties from objectB.
Thanks in advance for your help!!