Hi, i´m programming in C#, and i´ve a simple class Car, and i´d like to make
it able to accept a datasource to fill their properties, Can anybody help me
in how to do it ?
Im working with a datasource, and i´d like to bind the value "pers" from the
datasource, to my class....
Thanks a lot!
public class Car{
public int Id
{
get { return id ; }
set { id = value; }
}
public int pers
{
get { return pers; }
set { pers = value; }
}
}
Marc Gravell - 09 May 2008 08:36 GMT
Normally databinding is used to bind a model (such as classes) to a
user-interface or similar. The Car (or a list of) would *be* the
datasource - it wouldn't accept one.
Can you clarify what you want to do?
Marc