Hi, how do I change a column name in run-time (code behind) ??
Is there something like xamDataGrid1.Columns("Code").Caption = "Our Code" ????
Thanks
Gustavo
Each Field has a Label property, to which you can assign a user-friendly display name for the column. To change the Label of an auto-generated Field, I suggest you handle the FieldLayoutInitialized event of the XamDataGrid and run code like this:
void XamDataGrid_FieldLayoutInitialized(object sender, FieldLayoutInitializedEventArgs e){ foreach (Field field in e.FieldLayout.Fields) field.Label = GetLabelFromFieldName(field.Name);}
Hi Thanks for that
But for the my sinerio actually i have to add the Dynamic columns each time the user want to fire the event.
And always the grid has different no. of the Columns.
for that how can i trigger the new columns & assigned them the name as per my need.
Please Help Soon
Thanks in Advance