Hi!
I have in my reporting project a Reporting.List (mainList) inside of another Reporting.List (secondList).
So when i databind the mainList, i also want to databind the secondList during the mainList ItemDataBound event based on the contents of the binded data.
For that i will need to access a class object during the ItemDataBound event of the MainList.
I was trying to do this:
private void lstGrupoQuestoes_ItemDataBound(object sender, EventArgs e)
{
MyClass classobj = (MyClass)e.Item.DataItem;
secondList.DataSource = classobj.subclassmethod; //subclassmethod is a IList of another class object
MyRepeater.DataBind()
}
Unfortunely the EventArgs of the Reporting.List does not supports the "e.Item.DataItem". So how can i access a class object during the itemdatabound event?
Thanks.
I have in my reporting project a Reporting.List (mainList) inside of another Reporting.List (secondList).
So when i databind the mainList, i also want to databind the secondList during the mainList ItemDataBound event based on the contents of the binded data.
For that i will need to access a class object during the ItemDataBound event of the MainList.
I was trying to do this:
private void lstGrupoQuestoes_ItemDataBound(object sender, EventArgs e)
{
MyClass classobj = (MyClass)e.Item.DataItem;
secondList.DataSource = classobj.subclassmethod; //subclassmethod is a IList of another class object
MyRepeater.DataBind()
}
Unfortunely the EventArgs of the Reporting.List does not supports the "e.Item.DataItem". So how can i access a class object during the itemdatabound event?
Thanks.