Change datagrid view cell backgroud color based on color name stored in sql table
Posted on 2011-03-23
A color for each instrument is stored in the database. i need to change the cell background base on the instrument color assignment.
Celle(17) has the value "color.Blue" which of couse is a string
Me.dgvJobStatusHistory.Rows(e.RowIndex).Cells(3).Style.BackColor = Me.dgvJobStatusHistory.Rows(e.RowIndex).Cells(17).Value
Error: Specific cast is invalid.
Any suggestions on how to store of convert would be appreciated.