Another issue with this plugin.....I have a combobox.
But when I have selected my combo value then click elsewhere - setting the focus somewhere else, the value disappears from the column.
This is my code. I know I must be missing a line somewhere which keeps the combo value in the column but not sure what that line is.
- Code: Select all
public void Setup(JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm JiwaForm, JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
{
if (JiwaForm is JiwaFinancials.Jiwa.JiwaContactsUI.frmContact)
{
JiwaFinancials.Jiwa.JiwaContactsUI.frmContact contactForm = (JiwaFinancials.Jiwa.JiwaContactsUI.frmContact)JiwaForm;
jiwaGrid = contactForm.grdNotes;
contactForm.grdNotes.AddColumn("InteractDate",new FarPoint.Win.Spread.CellType.DateTimeCellType(), "Date Interaction",10,false,true,true,false,20,false,false,0,false,false);
FarPoint.Win.Spread.CellType.ComboBoxCellType comboBoxCellType = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
string[] interactionReasons = new string[] { "Reason 1", "Reason 2", "And another reason" };
comboBoxCellType.EditorValue = FarPoint.Win.Spread.CellType.EditorValue.String;
comboBoxCellType.Items = interactionReasons;
contactForm.grdNotes.AddColumn ("Reason", comboBoxCellType, "Reason",10,false,true,false,false,20,false,false,0,false,false);
contactForm.grdNotes.AddColumn ("MyNotes", new FarPoint.Win.Spread.CellType.TextCellType(), "More text",10,false,true,false,false,20,false,false,0,false,false);
contactForm.grdNotes.AddColumn("FupDate",new FarPoint.Win.Spread.CellType.DateTimeCellType(), "Date FollowUp",10,false,true,true,false,20,false,false,0,false,false);
contactForm.grdNotes.SetupComplete();
contactForm.Contact.SaveEnding += Attkey_ContactsSave;
}
}