A
Adam Knight
Hi all,
I am using the following code to specify datasource for a datagrid:
<bma:subAreasGrid id="subAreasGrid" runat="server" Data='<%#
Container.DataItem.Row.GetChildRows("relSubAreas")%>'></bma:subAreasGrid>
When the Data property of the user control recieves the data object it
recieves it as a 'Object'
I am trying to cast it to a useable format for binding it to the datagrids
datasource.
I have tried casting it to datarow, data row collection but none have
worked.
Can anyone tell me where i am going wrong?
Still learning the ropes here, so any help is appreciated.
I am using the following code to specify datasource for a datagrid:
<bma:subAreasGrid id="subAreasGrid" runat="server" Data='<%#
Container.DataItem.Row.GetChildRows("relSubAreas")%>'></bma:subAreasGrid>
When the Data property of the user control recieves the data object it
recieves it as a 'Object'
I am trying to cast it to a useable format for binding it to the datagrids
datasource.
I have tried casting it to datarow, data row collection but none have
worked.
Can anyone tell me where i am going wrong?
Still learning the ropes here, so any help is appreciated.