<asp:BoundField HeaderText="Name" DataField="CompanyAddress.AddressName" />
<%#DataBinder.Eval(Container.DataItem, "CompanyAddress.AddressName")%>
List<company> lst = new List<company>(); Address add = new Address () { AddressID = 1, AddressName = "aa"}; lst.Add( new Company (){ CompanyAddress = add , CompanyID = 122, CompanyName = "Code "}); lst.Add(new Company() { CompanyAddress = add, CompanyID = 222, CompanyName = " Project" }); grdTask.DataSource = lst; grdTask.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)