Hi, I was wondering how I could go about the code behind on this. I have my grid which display records and can filter by active, inactive, etc... then when I want to look at further details, the details table does not populate and now I am getting an error on:
that says:
Unable to cast object of type 'xxx.Model.database.table2' to type 'xxx.Model.database.table1' .
what is going on here?
If
e.Item.ItemType = GridItemType.Item OrElse e.Item.ItemType = GridItemType.AlternatingItem Then
Dim record As table 1 = e.Item.DataItem<----------
that says:
Unable to cast object of type 'xxx.Model.database.table2' to type 'xxx.Model.database.table1' .
what is going on here?