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.
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.