I have a GoText initialized as follows: (the Demo1.RecordNode modified to allow the user to choose from a list)
ArrayList list = new ArrayList();
list.Add(new Lookup(1, “one”));
list.Add(new Lookup(2, “two”));
…
gotext.Editable = true;
gotext.EditorStyle = GoTextEditorStyle.ComboBox;
gotext.DropDownList = true;
gotext.Choices = list;
the lookup class looks like this:
class Lookup
{
public Lookup(int id, string desc)
{ this.id= id; this.desc = desc; }
public override string ToString()
{ return this.desc; }
}
How do i retrieve the id of the selected lookup object ?
Any pointers greatly appreciated.
Thanks