T
terrorix
I have create Style class instance and set up properties like this:
Style st = new Style();
st.BackColor = Color.Black;
st.BorderColor = Color.White;
st.BorderStyle = BorderStyle.Solid;
st.BorderWidth = new Unit(1, UnitType.Pixel);
string styleStr = string.format("this.style.cssText='{0}', st.ToString());
cell.Attributes.Add("onmouseover", styleStr);
But st.ToString() seems to always return "" (string.empty). I want to return something like 'background-Color=Black; ... " text.
How the Style() class work and how i can do what i want?
Style st = new Style();
st.BackColor = Color.Black;
st.BorderColor = Color.White;
st.BorderStyle = BorderStyle.Solid;
st.BorderWidth = new Unit(1, UnitType.Pixel);
string styleStr = string.format("this.style.cssText='{0}', st.ToString());
cell.Attributes.Add("onmouseover", styleStr);
But st.ToString() seems to always return "" (string.empty). I want to return something like 'background-Color=Black; ... " text.
How the Style() class work and how i can do what i want?