This is a migrated thread and some comments may be shown as answers.

SortExpression

0 Answers 164 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Henry
Top achievements
Rank 1
Henry asked on 24 Apr 2012, 03:29 PM
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.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Henry
Top achievements
Rank 1
Share this question
or