|
Article relates to |
RadGrid v.4.x |
|
Created by |
Nikolay Dobrev, Telerik |
|
Last modified |
September 27, 2007 |
|
Last modified by |
Stephen, Telerik |
This article is applicable for RadGrid versions prior to 5.0.0. In RadGrid 5.0.0 grouping by columns which have null values should work out-of-the-box
PROBLEM
When grouping by a column that has
null values, only the group header for those values appears and the items with
null values are missing (they should be on the place of the red line in the image below).

SOLUTION A possible workaround is to replace the
null values in the SELECT statement. In this example we replace the null values with
:
SelectCommand="SELECT CustomerID, CompanyName, ContactTitle, Address, City, ISNULL(Region, ' ') AS Region, PostalCode, Country, Phone, Fax, ContactName FROM Customers" |
As a result, the values are grouped correctly and the items are shown under the group header:
Please
Sign In
to rate this article.