[Gtk-sharp-list] [Mono GTK#] Set Combobox Selected by Value

jaymarvels jacob.spencer80 at googlemail.com
Thu Sep 19 14:42:18 UTC 2013


In Winforms I can easily do:

cboNations.SelectedValue = 139;

And this will set my combobox where the value (NOT index) is 139.

I have a combobo in gtk# where i have bound a ListStore to it already.

Now, further along in my project I want to set the selected item by the
value.

I have tried doing what i'd do in winforms with no luck.

Any pointers..can't believe gtk# would be so tricky..



--
View this message in context: http://mono.1490590.n4.nabble.com/Mono-GTK-Set-Combobox-Selected-by-Value-tp4660923.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.


More information about the Gtk-sharp-list mailing list