Hi,
I want to display vertical lines of my grid in red.
I tried to do the following :
e.Layout.Override.BorderStyleCell =
UIElementBorderStyle.Solid;
e.Layout.Override.CellAppearance.BorderAlpha =
Alpha.Default;
e.Layout.Override.CellAppearance.BorderColor =
Color.Red;
e.Layout.Override.CellAppearance.BorderColor2 =
I can see vertical lines but not in red, in a very light gray.
I tried to change those properties in design mode, but with the same result.
How can I change the color ? Could I have another property somewhere else that interferes ?
Thanks,
Verane.
I had an .isl defined, but I thought that the code was overriding what's in the .isl, but apparently not.
Now it works, by setting the colors in the isl, and saying in the code wether I want to display vertical lines or not.
Regards,
Hello,
Please let us know if you have further question regarding Mike's solution.
Thank you for choosing Infragistics.
I tried this out and it works just fine for me.
What version of the control are you using?
My guess is that you are setting the Appearance properties on the grid in some other place and it is overriding the settings you are applying in the code here.
Maybe you application is loading a style library. Or maybe you are loading a Layout into the grid after this code is called.