Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
240
Displaying negative numbers.
posted

Hey,

I'm using ver. 9.1.20091.2075

I can't get the negative sign (-) in the left of the number as usual.

but i can't get to this state.

all i succeed is the one of the next two options:

1. the sign (-) is at left, but all the number is align also to left (in the cell) - NOT GOOD.

2. the sign (-) is at rigth, but all the number is align to rigth(in the cell) - NOT GOOD.

 

The code for choise 1  is:

result.Setters.Add(new Setter(Control.VerticalContentAlignmentProperty, VerticalAlignment.Center));

result.Setters.Add(new Setter(Control.HorizontalContentAlignmentProperty, HorizontalAlignment.Left));

result.Setters.Add(new Setter(Control.FlowDirectionProperty, FlowDirection.RightToLeft));

 

The code for choise 2  is:

result.Setters.Add(new Setter(Control.VerticalContentAlignmentProperty, VerticalAlignment.Center));

result.Setters.Add(new Setter(Control.HorizontalContentAlignmentProperty, HorizontalAlignment.Rigth));

result.Setters.Add(new Setter(Control.FlowDirectionProperty, FlowDirection.LeftToLeftRight));

 

The recommended code is:

result.Setters.Add(new Setter(Control.VerticalContentAlignmentProperty, VerticalAlignment.Center));

result.Setters.Add(new Setter(Control.HorizontalContentAlignmentProperty, HorizontalAlignment.Rigth));

result.Setters.Add(new Setter(Control.FlowDirectionProperty, FlowDirection.RightToLeft));

BUT *******

When i use the optimize (recommended) code the grid columns have problems is displaying the data.

i see one column good, and the other one only half  of it.. and so on.. one good one bad.

so for now i preffered the (2) code but its still not rigth.

thx

  • 9694
    posted

    Hello,

    I apologize that this post was not answered sooner. We are making the effort to ensure all posts are addressed by an Infragistics expert.

    Is this still an outstanding issue? If yes, would you be able to extract this problem into a reproducible sample project that you could post here in an archived ZIP file? That would make the issue more accessible for solving it.

    Thank you!