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
335
Specify field formats in filedlayout
posted

I have a xamTreeGrid in which there are two field layouts. I want to be able to format the data associated with these fieldlayouts differently. 

I am creating the fields, fieldLayouts and adding them to the grid during run time in the code (not declaring the fieldLayouts in xaml). 

FieldLayout fl1 = new FieldLayout();

fl1 .Fields.Add(new Field("Field1"));

fl1 .Fields.Add(new Field("Field2"));
fl1 .Fields.Add(new Field("Field3"));

FieldLayout fl2 = new FieldLayout();

fl2 .Fields.Add(new Field("Field1"));

fl2 .Fields.Add(new Field("Field2"));
fl2 .Fields.Add(new Field("Field3"));

xamTreeGrid.FieldLayouts.add(fl1);

xamTreeGrid.FieldLayouts.add(fl2);

I want to make the data associated with "fl1" as bold and make the text appear in Red. How can I do this in the code?

Parents Reply Children
No Data