Wow, we really need to clean some things in that grid control.
It's not real intuitive, but this is what I had to do in order get drill downs (and the hand cursor) working on the custom fields grid:
- Code: Select all
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.IJiwaCustomFieldValues HostObject, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomField CustomField, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomFieldValue CustomFieldValue)
{
if (CustomField.PluginCustomField.Name == "PO")
{
// Set cell type
GridObject.ActiveSheet.Cells[Row, Col].CellType = new JiwaFinancials.Jiwa.JiwaApplication.JiwaManageGrid.JiwaTextCellType();
// Set drilldown for hand cursor to be shown
if (GridObject.ActiveSheet.Cells[Row, Col].Tag == null)
GridObject.ActiveSheet.Cells[Row, Col].Tag = "DrillDown=1;";
else
GridObject.ActiveSheet.Cells[Row, Col].Tag = GridObject.StoreProperty(GridObject.ActiveSheet.Cells[Row, Col].Tag.ToString(), "DrillDown", "1");
// Set drilldown
GridObject.SetDrillDown("Contents", Row, "JiwaFinancials.Jiwa.JiwaPurchaseOrdersUI.PurchaseOrders", CustomFieldValue.Contents);
}
}