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
1065
Problem with displaying label
posted

Hello,

I have a field like this

 

<igDP:Field Name="LastName" Label="LASTNAME" />. When the datagrid is displayed, it displayed field name "LastName" in the header, but not label "LASTNAME".

Is there any idea why this might happen?

Thanks.

  • 69686
    posted

    Hello,

    This is probably because you have not defined the FieldLayout correctly. As you have not turned off the AutoGenerateFields property of the FieldlayoutSettings, in case you have defined the fields incorrectly, the XamDataGrid will ignore your fieldlayout and make a default one.

    Please note that you have to define all of the fields (even if you want to hide some in which case you set the Visibility to Collapsed) in a field layout and the name of the field must match the public property that it binds to.