After grid layout initialized, how change EditorStyle for fields? Next code don't help:
field.Settings.EditorStyle = newStyle;
Is there any method to refresh grid after that from code? I don't want reset DataSource for grid to apply new layout as next code:
Hi Peter,
In answer to your question - "How to change the EditorStyle for fields?" I would advise you to take a look at the followingXamDataGrid forum threads:
1. NumberFormat for Grid Columns <http://forums.infragistics.com/forums/t/1768.aspx> 2. Formatting a Field <http://forums.infragistics.com/forums/t/2187.aspx>
The attached ChangeFieldEditorStyleProgrammatically sample application contains a working solution demonstrating how you can change the EditorStyle of a xamDataGrid field programmatically.
Best Regards,Yanko
Thanks.
As I understand from sample, next code is used for field refresh after style changed:
if (field.IsExpandable.HasValue) field.IsExpandable = null; else field.IsExpandable = false;
Very original solution :)