Problem with ASPxGrid and generated nullable type

Posts   
 
    
SanderF
User
Posts: 125
Joined: 11-Dec-2006
# Posted on: 11-Dec-2006 15:42:40   

Hi,

I've put an ASPxGrid (from DevExpress) on my webform and bound a LLBLGenProDatasource. The datasource is bound to a EntityCollection in which some fields can contain null-values. In the designer the checkbox "(.NET 2.0) Generate as Nullable type" is checked.

When I want to display a field which can be nullable in the ASPxGrid I received the error: "A field or property with the name 'PersID' was not found on the selected datasource."

When I uncheck the textbox "(.NET 2.0) Generate as Nullable type" in de designer, it work fine. I will be able to fill fields in C# to null, so i want the checkbox on.

When i use a standard ASP.NET GridView it works fine in both situations.

The situation is that i want to use the ASPxGrid with nullable generated types.

Can anyone help me?

Aurelien avatar
Aurelien
Support Team
Posts: 162
Joined: 28-Jun-2006
# Posted on: 11-Dec-2006 16:18:34   

IMHO, it's a problem between ASPxGrid and nullables types...

I guess PersID is a nullable field ?

SanderF
User
Posts: 125
Joined: 11-Dec-2006
# Posted on: 12-Dec-2006 10:58:12   

That's right. I will post this problem on the forum of DevExpress, thanks.