C
Christian H
Hello.
I'm using the getChildRows method, in order to get the records related to my
current record:
DataRow[] myRowArray = dataItem.GetChildRows("myRelation");
Then I add this as a datasource:
RadioButtonList rbl=new RadioButtonList();
rbl.DataSource=myRowArray ;
rbl.DataBind();
My problem is when I want to set rbl.DataTextField property, so that I can
choose which column that should display a string related to the
radiobuttons.
I've tried:
rbl.DataTextField="[0]";
and
rbl.DataTextField="myColumn";
Neither of these works, as I get an error that there is no property with
either of these names.
I'm not sure if it is possible to use a datarow array as a datasource.
I've been struggeling with this for almost a week now, without any luck
finding my answer.
Regards C.H
I'm using the getChildRows method, in order to get the records related to my
current record:
DataRow[] myRowArray = dataItem.GetChildRows("myRelation");
Then I add this as a datasource:
RadioButtonList rbl=new RadioButtonList();
rbl.DataSource=myRowArray ;
rbl.DataBind();
My problem is when I want to set rbl.DataTextField property, so that I can
choose which column that should display a string related to the
radiobuttons.
I've tried:
rbl.DataTextField="[0]";
and
rbl.DataTextField="myColumn";
Neither of these works, as I get an error that there is no property with
either of these names.
I'm not sure if it is possible to use a datarow array as a datasource.
I've been struggeling with this for almost a week now, without any luck
finding my answer.
Regards C.H