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??
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";
Hi
Thanks for this but for my sinerio i have minimum 2 and Maximum 6 columns That i am binding to the datagrid, i am not setting any define for them in the xaml so how i can pick the perticular column & assign it the correct name that i need.
Please reply soon
Thanks in Advance