StrataFrame Forum

Infragistis UltraComboBox - Conversion Error

http://forum.strataframe.net/Topic10323.aspx

By Tim Dol - 7/16/2007

I'm populating a Infragistics combo box using SF Population methods and it works fine. When I blank out the field I get a error: Conversion from type 'DBNull' to type 'String' is not valid. I have set the 'Nullable' property to 'False' but it doesn't seem to make a difference.  When I use a SF ComboBox it works fine.

Any Ideas on how to resolve this issue? Is this a Infragistics problem?

Thanks

Tim

By Trent L. Taylor - 7/16/2007

Any Ideas on how to resolve this issue? Is this a Infragistics problem?

Hmmm....I will have to look into it.  We recently modified the SF combobox to allow multiple-columns in the drop down which was one of the major reasons to use the Infragistics.  The Infragistics combo ultimately uses a grid in the drop-down so it created a bit more overhead and has some of the funny things you run into with grids in general.  However, that being said, it is a good control so don't get me wrong, but as for the error, I will have to look into it.  Sorry for the round-a-bout answer Ermm

By Tim Dol - 7/16/2007

I just want to clarify.

The error is on the SF UltraComboEdit, and not the UltraCombo. (I would like to use the UltraCombo but you haven't wrapped it yet). Sorry for the confusion.

Tim

By Ben Hayat - 7/16/2007

(I would like to use the UltraCombo but you haven't wrapped it yet). Sorry for the confusion.


Tim, in another post, Trent mentioned that UltraCombo is derived from grid and you should use Business Binding Solution.



Hope I'm right quoting Trent!
By Trent L. Taylor - 7/16/2007

Yeah, I knew which control you were referring to, but I am not sure why you are having a problem.  Ben Hayat is also correct about the UltraCombo, you can use this as we speak with the BBS.  In fact, I think it was you who initially asked that question so I am sure this is a bit redundant BigGrin
By Tim Dol - 7/17/2007

Yes, I can use the control with a BBS but there is no biniding properties like the other controls for Business Object, binding field, state etc...  Perhaps I'm missing something?

Tim

By Tim Dol - 7/17/2007

Trent,

I emailed you a small sample application that demonstrates the error on the ComboBoxEdit.

Tim

By StrataFrame Team - 7/17/2007

Ah, yes, the data source for the grid that drops down can be bound to the BBS, but you're right, the IBusinessBindable is not implemented for the fields that you normally use to bind to a business object.  However, any control can bind to a BBS using the DataBindings type editor that you find in the "Data" category.
By Tim Dol - 8/14/2007

Hi Trent,

Have you had a chance to look the error with the SF Infragistics UltraComboEdit yet?  I have a release coming soon and need to make a decision on changing all my Infragistic ComboBox Edit controls to SF ComboBox's.

Thanks,

TIm

  

By Trent L. Taylor - 8/14/2007

Tim,

I have not yet had the chance to work on this.  It will require a bit of effort and I do not think that this is something that will get done this month.  Sorry. Ermm

By Tim Dol - 8/14/2007

That's too bad. I was hoping it was a simple solution to prevent the error when clearing the value.  Would it help if I sent you a quick example of the problem?

Thanks,

Tim

By Trent L. Taylor - 8/14/2007

Yeah that always helps Smile
By Tim Dol - 8/15/2007

Emailed you an example. Let me know if you did not receive it.

Tim

By Trent L. Taylor - 8/15/2007

Yeah, I got it...but I have a lot on my desk, so I am working through the pile Smile