StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Using ComboBox in Infragistics UltragridExpand / Collapse
Author
Message
Posted 04/12/2008 2:13:55 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 10/08/2008 10:13:21 AM
Posts: 152, Visits: 372
Hi,

I would like to add a dropdown list to a column in an Ultragrid. I tried to use a SF ComboBox control as the EditorControl for the column. However, the following error is thrown when the application runs:-

"EditorControl property can only be set to a control that implements IProvidesEmbeddableEditor interface."

As the ComboBox doesn't implement this interface, how do you add dropdown lists to a column in an Ultragrid? Which control do you use?

Thanks,

Aaron

Post #15576
Posted 04/12/2008 4:04:47 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 3:31:03 AM
Posts: 4,586, Visits: 4,569
As the ComboBox doesn't implement this interface, how do you add dropdown lists to a column in an Ultragrid? Which control do you use?

You would have to use an Infragistics combo, not a standard SF combo.  You should be able to use the Infragistics Wrapper combo as this inherits from the UltraCombo which should have than implementation.  If not, then it would be a matter of creating a custom class and just implementing that interface:

Public Class MyEmbeddableCombo
    Inherits MicroFour.StrataFrame.UI.WIndows.Forms.ComboBox
    Implements IProvidesEmbeddableEditor

End Class

In any case, you should be able to get it accomplished without too much effort.

Post #15577
Posted 04/12/2008 4:55:00 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 10/08/2008 10:13:21 AM
Posts: 152, Visits: 372
I tried subclassing the combobox and implementing the interface but there are problems with that as the control is expected to expose several features, e.g. Editor, etc.

I will use the Infragistics combo instead. It probaby suits us as we already have a subclassed grid that will automatically create the dropdowns based on tag values. i doubt it will take much to convert this to create and populate a BO instead.

Thanks.

Post #15578
Posted 04/12/2008 5:09:51 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 3:31:03 AM
Posts: 4,586, Visits: 4,569
Sounds good 
Post #15579
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 5:42am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.031. 8 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.