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 IlioskiRank #9,295 · 208 reputationPosted Mar 4, 2009, 1:10 PM EST
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...
Thiago Sarcinelli3 reputationPosted Mar 4, 2009, 5:33 PM EST
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 IlioskiRank #9,295 · 208 reputationPosted Mar 5, 2009, 3:54 AM EST
I will try to help you with your problem,if you give some example about your problem...