Creating a "rota" system (staff schedule) using the DataGrid

no worries, I thought about your other question a little bit… i.e. to make duplicates span across multiple columns in a datagrid.

idea:

  • put Labels on the DataRowPanel and bind the labels.text property to self.item["1602"] etc…
  • in the code for the DataRowPanel you could change the background colour of each label depending on the Project.
  • You could even use a data binding for the background color.

proof of concept

https://anvil.works/build#clone:PPJBJQMOSUHWGJKP=OBDZM3ODGDWXQQ7Y5YXH7YQ7

it’s not perfect… could be more dynamic… and would need some css to remove the padding between columns… but…