How do you set the "Foreground Color List" in a data table in scripting?

I need to dynamically assign the values and colors for the “Foreground Color List” based on a SQL data table maintained by a user.

If you can’t do that, how can I save the color scheme, so that when I need to change it, I can change it in one place or at least copy it to each column that needs the special formatting

try this, if this is what you are looking for…

Assign RGB values (for example 85,85,85) to a tag and bind the tag to the Foreground Color property of the table.