Hi,
When i read the color, for primary colors it is showing as color[red or blue or yellow etc]
when i read it for non primary colors, it is showing as color[A=255, R=64, G=128, B=128] etc.
Why am i not getting the color names for non primary colors?
I want to read the color in one place and apply the same to a row.
For primary colors, i am able to do it. for non primary colors it is failing.
this is my code:
Dim curr_row As Integer = dgvSchedules.CurrentRow.Index
Me.ColorDialogpalette.ShowDialog()
dgvSchedules.RowHeadersDefaultCellStyle.SelectionBackColor = Me.ColorDialogpalette.Color
If m_selectedrow >= 0 Then
dgvSchedules.Rows(m_selectedrow).DefaultCellStyle = Nothing
End If
m_selectedrow = dgvSchedules.CurrentRow.Index
dgvSchedules.CurrentRow.DefaultCellStyle.BackColor = Me.ColorDialogpalette.Color
tripid_color = dgvSchedules.Item("Trip_ID", m_selectedrow).Value.ToString()
rowcolor = dgvSchedules.Rows(m_selectedrow).DefaultCellStyle.BackColor.ToString()
Call color_datatable(tripid_color, rowcolor)
Does anyone have a solution for this?
Thanks in Advance