I have a SfDataGrid bound to a collection.
Depending a dropdown selection i bind the grid to other collections with differents colums and value types. Collections format is only known at run time. Cells values are updated once per second.
This part is almost running. I just need to make some cosmetic actions, such as changing display format or changing background cells color when values are updated inside.
Actually i'm not using any templates, but I just create columns when discovering the binded collection.
for (int i = 0; i < data.Count; i++)
{
GridTextColumn c = new GridTextColumn();
c.MappingName = string.Format("[{0}]", i);
c.HeaderText = columnNames[i];
activeColumns.Add(c);
}
Thanks in advance for any help.