Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Converting String to color!!!!

Author  Topic 

sarikavbhosale
Starting Member

24 Posts

Posted - 2006-02-13 : 06:04:04
Hello Everybody,

I strored the color name into the database in the following
Color [A=255, R=0, G=128, B=192]
and getting it into the string
Now i want to set backcolor of the datagrid row but,it gives me error as "cannot implicitly convert system.string to system.drawing.color"
How can i solve this problem without splitting up the string.

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2006-02-13 : 07:18:16
you can't.
you need to parse the string.

Go with the flow & have fun! Else fight the flow
Go to Top of Page
   

- Advertisement -