Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3806
column header are not visible when record count=0 and AutoGenerateFields=True
posted

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?

Parents
No Data
Reply
  • 2125
    posted

    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

     

    xamDataGridColumnHeaderNotVisible.zip
Children