Is this LLBL or Infragistics?

Posts   
 
    
LLBLGen
User
Posts: 43
Joined: 10-Apr-2006
# Posted on: 30-Jun-2006 18:39:37   

I am using Infragistics UltraWinGrid. The grid is binded to LLBL EntityCollection that has UserGUID,BookTypeGUID, ValidatedDate

I have setup the Grid in following way

UserGUID is a drop down with UserCollection and has DisplayMember =UserName and ValueMember=UserGUID.

BookTypeGUID is a drop down with BookTypeCollection and has DisplayMember =BookType and ValueMember=BoodTypeGUID.

ValidatedDate is DateTimePicker

Everything is fine except when i try to add new row, i get "000-00...s" on UserGUID and BookTypeGUID and '01/01/01' on ValidatedDate.

but once i save it looks ok.

even setting up with grid's default value to DBNull didnt work (i get an error)

I have not tried this with LLBLGen V2 yet. I coulnt get any resolution from Infragistics...so i come here.

whats my solution. how can i get rid of default 0s on GUIDs and '01/01/01' on Date.

I am Using WinForm,Adaptor, VS 2005.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39797
Joined: 17-Aug-2003
# Posted on: 01-Jul-2006 08:34:45   

Seems like default values for fields which aren't initialized. Most grids just show an empty cell though.

Frans Bouma | Lead developer LLBLGen Pro
LLBLGen
User
Posts: 43
Joined: 10-Apr-2006
# Posted on: 03-Jul-2006 05:46:23   

Thanks for your response Fran, But whe you say most of the Grid,do you also mean for Infragistics's Grid? like i said when i have a default value of DBNull I still get an error. so i can't use DBNull either? is there another way to initialize? This will be huge for me.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39797
Joined: 17-Aug-2003
# Posted on: 03-Jul-2006 09:31:58   

Is it possible to define "If value X then value DBNull.Value" ? I'm not familiar with the infragistics grid's technical details.

Frans Bouma | Lead developer LLBLGen Pro
BertS
User
Posts: 89
Joined: 28-Jul-2005
# Posted on: 04-Jul-2006 08:42:08   

Have a look at the DataFilter in Infragistics. There you can correct handle this sort of things.