tipvernonia
asked on
Change datagrid view cell backgroud color based on color name stored in sql table
A color for each instrument is stored in the database. i need to change the cell background base on the instrument color assignment.
Instrument1 color.lightGray
Instrument2 color.yellow
Instrument3 color.Blue
Celle(17) has the value "color.Blue" which of couse is a string
Me.dgvJobStatusHistory.Row s(e.RowInd ex).Cells( 3).Style.B ackColor = Me.dgvJobStatusHistory.Row s(e.RowInd ex).Cells( 17).Value
Error: Specific cast is invalid.
Any suggestions on how to store of convert would be appreciated.
Instrument1 color.lightGray
Instrument2 color.yellow
Instrument3 color.Blue
Celle(17) has the value "color.Blue" which of couse is a string
Me.dgvJobStatusHistory.Row
Error: Specific cast is invalid.
Any suggestions on how to store of convert would be appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER