Note that there are some explanatory texts on larger screens.

plurals
  1. POIncorrect number format when value is < than 0
    text
    copied!<p>I have a DevXpress grid display some information about geolocalization this including Longitude and Latitude, both columns are formated as Number <code>"N5"</code> but in latitude I have 45,xxxx and in latitude I have <code>-73,xx</code> I double checked generated code and DevXpress <code>"WYSIWYG"</code> but can't find anything.</p> <p>The generated code:</p> <pre><code>// // colLatitude // resources.ApplyResources(this.colLatitude, "colLatitude"); this.colLatitude.DisplayFormat.FormatString = "N5"; this.colLatitude.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.colLatitude.FieldName = "Latitude"; this.colLatitude.MinWidth = 50; this.colLatitude.Name = "colLatitude"; this.colLatitude.OptionsColumn.AllowEdit = false; this.colLatitude.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False; this.colLatitude.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; this.colLatitude.OptionsColumn.ReadOnly = true; </code></pre> <p><br /></p> <pre><code>// // colLongitude // resources.ApplyResources(this.colLongitude, "colLongitude"); this.colLongitude.DisplayFormat.FormatString = "N5"; this.colLongitude.DisplayFormat.FormatType = DevExpress.Utils.FormatType.Numeric; this.colLongitude.FieldName = "Longitude"; this.colLongitude.MinWidth = 50; this.colLongitude.Name = "colLongitude"; this.colLongitude.OptionsColumn.AllowEdit = false; this.colLongitude.OptionsColumn.AllowGroup = DevExpress.Utils.DefaultBoolean.False; this.colLongitude.OptionsColumn.AllowSort = DevExpress.Utils.DefaultBoolean.False; this.colLongitude.OptionsColumn.ReadOnly = true; </code></pre> <p>code from the view's controller : </p> <pre><code> /// &lt;summary&gt; /// Get la Latitude /// &lt;/summary&gt; public double Latitude { get { return this.GPSEventData.Latitude; } } /// &lt;summary&gt; /// Get la Longitude /// &lt;/summary&gt; public double Longitude { get { return this.GPSEventData.Longitude; } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload