Just to let you know that if I load the layout into a gridview before the initial data load the formatting of some cells does not work. Please refer to the attached example. Simply changing the two lines of code will work around the issue. If the data is reloaded afterwards by means of the third button, the problem does not reoccur. So it's a matter of loading data before loading a layout for the first time. Workaround: set the DataSource after the layout is loaded