I have a DevXpress grid display some information about geolocalization this including Longitude and Latitude, both columns are formated as Number "N5"
but in latitude I have 45,xxxx and in latitude I have -73,xx
I double checked generated code and DevXpress "WYSIWYG"
but can't find anything.
The generated 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;
//
// 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 from the view's controller :
/// <summary>
/// Get la Latitude
/// </summary>
public double Latitude
{
get { return this.GPSEventData.Latitude; }
}
/// <summary>
/// Get la Longitude
/// </summary>
public double Longitude
{
get { return this.GPSEventData.Longitude; }
}