Hello,
I'm trying to set the forecolor of one cell in a gridview with the following code: ForeColor='<%# Eval("priorityColor")%>' where the "priorityColor" is another bound datafield whose values in the table are hex colors (i.e. #00BB00).
However, I'm getting the error: System.InvalidCastException: Specified cast is not valid.
Please assist.
Thank you,
Jeret
I'm trying to set the forecolor of one cell in a gridview with the following code: ForeColor='<%# Eval("priorityColor")%>' where the "priorityColor" is another bound datafield whose values in the table are hex colors (i.e. #00BB00).
However, I'm getting the error: System.InvalidCastException: Specified cast is not valid.
Please assist.
Thank you,
Jeret