[Gtk-sharp-list] Combobox with values from databases

hugao hugaomrodrigues at gmail.com
Fri Jun 20 10:02:20 UTC 2014


Hi,

I have a little question. When I used Visual Studio I fill the combo box
using a Dataset with values from a database. Like this:

DataSet ds = class_geral.mysql_dataset(sql, "s");
comboBox_tipo_conta.DataSource = ds.Tables["s"];
comboBox_tipo_conta.DisplayMember = "type_account";
comboBox_tipo_conta.ValueMember = "type_account"; 

But in Mono Develop, with Gtk# the options of DataSource, DisplayMember and
ValueMember aren't available. Can anyone tell me how I fill the combo box
with data from MariaDB?

Thanks in advance,
Hugo Rodrigues.



--
View this message in context: http://mono.1490590.n4.nabble.com/Combobox-with-values-from-databases-tp4663160.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.


More information about the Gtk-sharp-list mailing list