Hi,
I have a combobox which I listed colors as below;
Type colorType = typeof(Colors);
PropertyInfo[] propInfoList =
colorType.GetProperties(BindingFlags.Static | BindingFlags.DeclaredOnly | BindingFlags.Public);
foreach (PropertyInfo c in propInfoList)
{
this.cmbColors.Items.Add(c.Name);
}
That is not my work , but I want to simplify my work as below;
Let's say my table columns: Name,Surname,Address ,Color(varchar).
I should take the color from combobox and insert into color column as string to database. Also I should be able to show the color in a window which comes from database with other colons.
How can I convert color type to string in
Silverlight? I tried a few thing , but they did't work.
Thanks for the replies, in advance..