Hi,
when i set as DataSource an empty collection (ObservableCollection) the header of the datagrid. disappers.
It's possible to set a property (?) that leave the header when the collection is empty?
Thks for help...
But there is a way to leave the header if the collection is empty?
I'try to add an object, add the collection to the datasource and then delete the same object but the header disappers too...
You are right. It is because of the Abstract class. It does not work with interfaces as well. I am guessing that is because they cannot have constructors.
Probably I've unterstood the problem.
We have a hierarchy of class.ABusinessObjectEntity (Abstract class) and the really implementation (for example PersonEntity).
When I set the data source to a XamDataGrid I use:
new ObservableCollection<ABusinessObjectEntity> and then I add PersonEntity objects.So when the collection is empty the header disappers.
There is a workaround to leave the header visible? If I add an empty PersonEntity object the header is visible.
Thks for the help.
Hello,
What is the exact version of our controls that you are using. I cannot reproduce this when testing this with the latest service release for 9.2 :
xamDataGrid1.DataSource = new ObservableCollection<Person>();