How binding each column to other data source..

Posted by liran on Stack Overflow See other posts from Stack Overflow or by liran
Published on 2010-06-05T14:00:22Z Indexed on 2010/06/05 14:02 UTC
Read the original article Hit count: 202

Filed under:
|
|

hello,

i have datagridview and Object data source :

public class Data
{

    public general general { get; set; }
    public Person Person { get; set; }


}
public class general
{
    public int Id { get; set; }
    public int Name { get; set; }
}

public class Person
{
    public int Tag { get; set;}

}

}

i want to bind first column to general.id and second to person.Tag, how i do this, its is possible to bind each column to other dataSource without add any code in data, person or general classes.

maybe need to add column manually?

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET