"VMI" <vo******@yahoo.com> wrote in
news:e3**************@TK2MSFTNGP15.phx.gbl:
Is it possible to display something in a combobox and store something
else?
For example, can I display "Query for active employees" and save the
actual query in the same combobox item? That way I can automatically
retrieve the specific query for the option the user chose.
If this is an object class that you have defined, then you can override the
ToString() method and that is what will display in the comboBox. For
example:
public class MyQuery
{
... Your Query Definition ...
public string QueryName = "Query for active employees";
public override string ToString()
{
return QueryName;
}
}
--
-mdb