Hi everybody.
I am with a problem that seems simple.
I have a class that represent my Entity.
This entity has ID, Title like a property.
Than i inherit form Entity a class named Project that has other properties like... List
Than when i put my object datasource on screen and associate it for a gridview i can bind all properties that doenst are LIST.
How can i access properties inside my lists?
Like a name of city????????
Aleksandar IlioskiPosted Mar 5, 2009, 8:54 AM
I will try to help you with your problem,if you give some example about your problem...
Thiago SarcinelliPosted Mar 4, 2009, 10:33 PM
forget about it.
I allready give up!
There is no solution to solve it.
unable to cast a parent class to child class even the parent was created like child but added in list only to turn all method generics...
C# sucks...
Aleksandar IlioskiPosted Mar 4, 2009, 6:10 PM
I don't realy understand your question... yourObject;
You can access in your list like this:
List
// adding
yourObject[index] where 'index' is number of the element you want to access...
if this doesn't help, tell more details about what are you doing...