Hi Jamilah,
Below is a sample that shows you "How to convert the string from style object in a grid?". Please try this and let me know if this helps.
ModifiedRegionalTest.zip[c#]
public static Color CurrentParseColor;
public static string ParseString( string s)
{
int index = s.IndexOf("TextColor");
if (index != -1)
{
int iend = s.IndexOf('',index);
string textColor = s.Substring(index, index + iend+1);
int iequalSign = textColor.IndexOf('=');
string colorstring = textColor.Substring(iequalSign + 1).Replace("\r", "").Replace("","") ;
TypeConverter converter = TypeDescriptor.GetConverter(typeof(Color));
object obj = converter.ConvertFromInvariantString(colorstring);
CurrentParseColor = (Color)obj;
s = s.Replace(textColor, "");
}
return s;
}
Best regards,
Haneef