Hi Michael

hers my code

ListStore ls=new ListStore(typeof(int),typeof(string));
comLibraries.Model=ls;
CellRendererText cell=new CellRendererText();
comLibraries.PackStart(cell,true);      
comLibraries.AddAttribute(cell,"text",1);
                

//Fill store from datareader
while(dr.Read()){
ls.AppendValues(dr.GetInt32(0),dr[1].ToString());
}
-- 
View this message in context: 
http://www.nabble.com/ComboBox-with-two-columns-tp19953369p20011217.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to