I am trying to setup custom columns with a WinForm datagrid using TableStyles. It appears that I am having difficulty with the MappingName property.
As per other posts I have verified that I am using proper cased Property names for the column MappingName. I believe my difficulty is with the TableStyle MappingName. I have an EntityCollection created as such:
EntityCollection allData = DataManager.GetAllData()
The GetAllData method creates the EntityCollection using a DataEntityFactory:
EntityCollection allData = new EntityCollection(new DataEntityFactory());
I then use the DataAccessAdapter.FetchEntityCollection(allData,null) to retreive the data. Returning allData;
No matter what I do the Grid will not associate the resulting TableStyle with the EntityCollection in use.
I have tried the following for the MappingName on the TableStyle:
allData
DataEntity
DataEntityCollection
EntityCollection
I have seen other posts indicating the need to include "Collection" in the name.
Any Ideas????
Anyone else using the Adpter with windos datagrid?
How about with Infragistics controls like UltraGrid??
Gary