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
755
How to specify a dynamic field label
posted

Hi,

I want to specify a dynamic value for the label of a field.  How can I manage the data context of the field to be able to bind the path I want.  I tried to create a Property in the DataContext of the userControl containing the DataGrid.  I also tried to add a property in the collection corresponding to the DataSource of the grid.  Finaly, I tried to force a DataContext on the grid.  Nothing seams to work!

Is there anybody who can help??

 

 

Parents
  • 3627
    posted

    If you are trying to change the label in the header row for a field, you can do this in the FieldLayoutInitialized event.

    e.FieldLayout.Fields["Identifier"].Label = "xyz";

Reply Children
No Data