I have a radgrid bind to a list of object A which contains another object B as below
Class B
{
string name;
}
class A
{
B b;
}
for one of the GridBoundColumn, it is bind to b.name with DataField and SortExpression, however some of object A had null vaue for field b, so the page is throwing exception.
how can I config it so that if field b is null for the object A, it just uses empty string "", otherwise bind to b.name?
thanks.
Class B
{
string name;
}
class A
{
B b;
}
for one of the GridBoundColumn, it is bind to b.name with DataField and SortExpression, however some of object A had null vaue for field b, so the page is throwing exception.
how can I config it so that if field b is null for the object A, it just uses empty string "", otherwise bind to b.name?
thanks.