[Gtk-sharp-list] Combobox with DataSource

Amorphiell philippe.grohrock at gmail.com
Thu Aug 2 13:15:56 UTC 2012


Okay, so there is the thing I somehow overlooked, thanks a lot. Sometimes
it's hard to spot the obvious when you're looking for something very
special =)

I've already worked with the TreeModel to display data and I've seen
examples on how to populate comboboxes with that (from Michael Hutchinson),
so your short and quick reply was indeed the key element I was missing.

Regards

Philippe

2012/8/2 Wolfgang Silbermayr [via Mono] <
ml-node+s1490590n4650690h47 at n4.nabble.com>

> On 2012-08-02 13:08, Amorphiell wrote:
>
> > Options.DViewMan is the corresponding DataViewManager, coming from a
> > public static class, so that should not be the problem. The error I get
> > is a "Gtk.Combobox" does not contain a definition for DataSource and no
> > extension method could be found etc. ... (missing using directive or
> > assembly reference?) (It's in German and I don't have the exactly
> > matching English translation) Any ideas on where I am missing something?
> > Because from what I read the DataSource is part of System.Data, so that
> > reference is there.
>
> Are you using a Gtk.ComboBox intentionally? If yes, you won't be able to
> set the DataSource property of it, because there is none. The example in
> the bugtracker that you found used the ComboBox from
> System.Windows.Forms [0], which has nothing to do with Gtk. With Gtk you
> either can feed a string[] to the ComboBox, or you create a TreeModel
> that is used. This however is beyond the scope of what I can quickly
> write here. The documentation for the Gtk combobox is at [1].
>
> Regards, Wolfgang.
>
> --
>
> [0]
> http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.aspx
> [1] http://docs.go-mono.com/?link=T%3aGtk.ComboBox
>
> _______________________________________________
> Gtk-sharp-list maillist  -  [hidden email]<http://user/SendEmail.jtp?type=node&node=4650690&i=0>
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://mono.1490590.n4.nabble.com/Combobox-with-DataSource-tp4650689p4650690.html
>  To unsubscribe from Combobox with DataSource, click here<http://mono.1490590.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4650689&code=cGhpbGlwcGUuZ3JvaHJvY2tAZ21haWwuY29tfDQ2NTA2ODl8LTMxNTQwMjY0NQ==>
> .
> NAML<http://mono.1490590.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://mono.1490590.n4.nabble.com/Combobox-with-DataSource-tp4650689p4650691.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20120802/e6ab0e14/attachment.html>


More information about the Gtk-sharp-list mailing list