10-14-2015 05:51 AM
Hi
I am using the SDK to display custom entity values via data binding to to grid.
If I use the standard .Net grid these display fine however I want to use a DevExpress grid but this gives me the following error:
MutableEntityMetaDataAurgumentException
not a valid alias for a column
Parameter name: fullName
I am using the following code for data binding (which does work for the .Net grid)
if (currentContact != null) { // Get the CustomSubEntityManager our custom sub entity. CustomSubEntityManager<Act.Framework.CustomEntities.CustomSubEntity> manager = this.actApplication.ActFramework.CustomEntities.GetSubEntityManager<Act.Framework.CustomEntities.CustomSubEntity>(definition.ENTITY_NAME); if (manager != null) { // Get all custom sub entities that belong to the current primary entity. CustomEntityList<Act.Framework.CustomEntities.CustomSubEntity> customSubEntities = null; if ((parentEntity & ParentEntity.Contacts) == ParentEntity.Contacts) customSubEntities = manager.GetCustomSubEntities(currentContact, null); else if ((parentEntity & ParentEntity.Groups) == ParentEntity.Groups) customSubEntities = manager.GetCustomSubEntities(currentGroup, null); else if ((parentEntity & ParentEntity.Companies) == ParentEntity.Companies) customSubEntities = manager.GetCustomSubEntities(currentCompany, null); if (customSubEntities != null) { this.bindingSource1.DataSource = customSubEntities; this.grid.DataSource = this.bindingSource1; } } }
Has anyone used DevExpress controls before like this?
Thanks.
11-02-2015 12:18 PM
10-14-2015 08:20 AM
10-15-2015 11:42 PM
Okay Jim, thanks for the reply....onto plan B then!!!
10-16-2015 04:23 AM
11-02-2015 12:18 PM