Hi Marsha - Life is good - still at Dow Jones - Doing all C# now and loving it.
Here is how I ended up creating a dropdown that would bind to single character string
First created a custom class
public class actionType // used for cboActionToPerform
{
private string _actionval;
private string _displayval;
public string ActionVal
{
get { return _actionval; }
set { _actionval = value; }
}
public string DisplayVal
{
get { return _displayval; }
set { _displayval = value; } }
public actionType(string actionval, string displayval)
{
_actionval = actionval;
_displayval = displayval;
}
then in the contstructor of the form
...
List<actionType> Actions = new List<actionType>();
Actions.Add(new actionType("C", "Change"));
Actions.Add(new actionType("A", "Add"));
Actions.Add(new actionType("D", "Delete"));
this.cboAction.DataSource = Actions;
this.cboAction.DisplayMember = "DisplayVal";
this.cboAction.ValueMember = "ActionVal";
Working well.
Say Hi to Andy for me.