column header are not visible in XamDataGrid when record count=0 and AutoGenerateFields is True. I want to display the column header in this case. Is it possible?
Hi,
Definitely, it's possible.In your case when the Data Source is empty and AutoGenerateFields ="True" your Data Source should be BindingList(T) type. Because if it's not, the bound control can not get property descriptors of the underlying list object. In the xamDataGridColumnHeaderNonVisible sample application I have used a BindingList<T> collection as my Data Source.Although my Data Source is empty and the AutoGenerateFields property is set to "True", the column headers are visible.
Best Regards,Yanko
I think Mark's struggling with something different. He has more than one field layout wihch addresses multiple object types in the data source, but he wants to predefine the actual column header labels. The grid seems to only support implicit header creation - either through the field first field layout used, or through AutoGenerateFields.