I'm expecting that the property Culture of the can be used to set the culture of the grid and this reflect also the data displayed in its cells, right?
<
telerik:RadGrid
ID
=
"GrdWaypoints"
runat
=
"server"
Width
=
"550px"
AutoGenerateColumns
=
"False"
Culture
=
"en-US"
AllowAutomaticUpdates
=
"false"
AllowAutomaticInserts
=
"false"
AllowAutomaticDeletes
=
"false"
OnDeleteCommand
=
"GrdWaypoints_DeleteCommand"
OnInsertCommand
=
"GrdWaypoints_InsertCommand"
OnUpdateCommand
=
"GrdWaypoints_UpdateCommand"
OnItemDataBound
=
"GrdWaypoints_ItemDataBound"
GroupPanelPosition
=
"Top"
OnNeedDataSource
=
"GrdWaypoints_NeedDataSource"
>
<
ClientSettings
AllowDragToGroup
=
"false"
>
<
Scrolling
AllowScroll
=
"false"
UseStaticHeaders
=
"false"
/>
</
ClientSettings
>
<
GroupingSettings
ShowUnGroupButton
=
"false"
/>
<
MasterTableView
ShowGroupFooter
=
"False"
Width
=
"100%"
DataKeyNames
=
"WaypointID"
EditMode
=
"InPlace"
>
<
NoRecordsTemplate
>
Per aggiungere waypoint dell'itinerario, clicca su "Aggiungi Waypoint"
</
NoRecordsTemplate
>
<
Columns
>
<
telerik:GridNumericColumn
UniqueName
=
"Longitude"
HeaderText
=
"Longitudine"
DataField
=
"Longitude"
DecimalDigits
=
"6"
DataFormatString
=
"{0:#0.000#}"
></
telerik:GridNumericColumn
>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
So in the above grid no matter what I specify in the culture property the numbers, in the longitude GridNumeric column are always displayed based on the number regional settings of the server.
And on the Insert and Update command, everything goes in error if the user the number in a different culture from the server.
For I have a server with number regional settings like the following:
- Decimal (comma)
- Digit (point)
but in this grid and only on this grid the user must insert the values in US format:
- Decimal (point)
- Digit (comma)