C
Chris Perry
Hello all,
My problem is simply that I need to be able to show inherited members in my
datagrid but only the members defined in that type are showing up.
Heres my problem :
//dg = my datagrid
dg.DataSource =
((Respondant)e.Item.DataItem)[15].Jobs.ToArray(typeof(JobType)); // Jobs is
an ArrayList
Response.Write(dg.DataSource); // Showing as JobTypeExtra the inherited type
dg.AutoGenerateColumns = true; // only 'Benefits' the non inherited property
shows up
Furthermore if I do not generate the columns and instead do it myself
BoundColumn dgc = new BoundColumn();
dgc.DataField = "BasicWage";
dg.Columns.Add(dgc);
I get A field or property with the name 'BasicWage' was not found on the
selected datasource.
Any insight or workarounds gratefully recieved.
Thanks,
Chris.
My problem is simply that I need to be able to show inherited members in my
datagrid but only the members defined in that type are showing up.
Heres my problem :
//dg = my datagrid
dg.DataSource =
((Respondant)e.Item.DataItem)[15].Jobs.ToArray(typeof(JobType)); // Jobs is
an ArrayList
Response.Write(dg.DataSource); // Showing as JobTypeExtra the inherited type
dg.AutoGenerateColumns = true; // only 'Benefits' the non inherited property
shows up
Furthermore if I do not generate the columns and instead do it myself
BoundColumn dgc = new BoundColumn();
dgc.DataField = "BasicWage";
dg.Columns.Add(dgc);
I get A field or property with the name 'BasicWage' was not found on the
selected datasource.
Any insight or workarounds gratefully recieved.
Thanks,
Chris.