How to Display array object of class in WebGrid ?
hi
am having a class which consist property of type another class
for eg:
Public Class AA
{
private string add;
private BB Name;
public string Add
{
get{return add;}
set{add=value;}
}
public TestA Name
{
get{return name;}
set{name=value;}
}
}
public Class BB
{
private string name;
private int id;
public string Name
{
get{return name;}
set{name=value;}
}
public int ID
{
get{return id;}
set{id=value;}
}
}
so if my webgrid is abc then
AA[]aa=new AA[2];
...
assiging of values...
abc.DataSource=AA
however in this case my BB values does not get Display
so if you guys have some solution then Please do let me know
thanks.
Enjoy Programming
|