public void FormatCell(JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogic BusinessLogicHost, JiwaFinancials.Jiwa.JiwaApplication.Controls.JiwaGrid GridObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm FormObject, int Col, int Row, JiwaFinancials.Jiwa.JiwaApplication.IJiwaLineCustomFieldValues HostItem, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomField CustomField, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomFieldValue CustomFieldValue)
{
// Set the drop-down items for our custom field
if (CustomField.PluginCustomField.Name == "ComboTest")
{
var itemData = new List<string>() {"10", "20", "30"};
var itemDisplay = new List<string>() {"Red", "Green", "Blue"};
if (GridObject.ActiveSheet.Cells[Row, Col].CellType == null)
GridObject.ActiveSheet.Cells[Row, Col].CellType = GridObject.ActiveSheet.Columns[Col].CellType;
FarPoint.Win.Spread.CellType.ComboBoxCellType comboCell = (FarPoint.Win.Spread.CellType.ComboBoxCellType)GridObject.ActiveSheet.Cells[Row, Col].CellType;
comboCell.ItemData = itemData.ToArray();
comboCell.Items = itemDisplay.ToArray();
}
}
Return to Technical and or Programming
Users browsing this forum: No registered users and 12 guests