K
Katit
I need to be able to custom color background of cells.
When I do
DataGridViewCell.Style.BackColor = Color.Yellow;
It works properly as with any other enumerated color.
When I try to do something like:
DataGridViewCell.Style.BackColor =
Color.FromArgb(Convert.ToInt32("68FDFA", 16));
It makes it like transparent and then it's all messed up. Hard to
explain, but it doesn't work. It get's impring of underlying window.
Anybody had this problem before? How do I create custom colors by
knowing HEX color value?
In VB6 I used FarPoint grid and did something like:
..BackColor = Val("&h" & "68FDFA")
Basically, it was taking long value...
What is the problem here? I'm all confused..
When I do
DataGridViewCell.Style.BackColor = Color.Yellow;
It works properly as with any other enumerated color.
When I try to do something like:
DataGridViewCell.Style.BackColor =
Color.FromArgb(Convert.ToInt32("68FDFA", 16));
It makes it like transparent and then it's all messed up. Hard to
explain, but it doesn't work. It get's impring of underlying window.
Anybody had this problem before? How do I create custom colors by
knowing HEX color value?
In VB6 I used FarPoint grid and did something like:
..BackColor = Val("&h" & "68FDFA")
Basically, it was taking long value...
What is the problem here? I'm all confused..