[Gtk-sharp-list] ComboBox with two columns

Michael Hutchinson m.j.hutchinson at gmail.com
Fri Oct 24 19:47:19 EDT 2008


On Thu, Oct 16, 2008 at 6:50 AM, Mex <meelis.lilbok at deltmar.ee> wrote:
>
> 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());
> }

Are you sure there is no other code affecting the textbox?

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Gtk-sharp-list mailing list