Can I convert a value before it is shown to the user and after they edit the value?
For example if I have a column in the database that represents Latitude in decimal degrees: 40.5893905
I want to convert it to be in Degrees Minutes Seconds as: N 40° 35' 21.8058" for the user to see.
Also, if the user types in a value as Degrees Minutes Seconds I want to convert it back into decimal degrees to be stored in the database.
Is this possible with the WebDataGrid?
Thanks,
Brian.
Hello demoend ,
I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
Thank you for posting in our forum.
You can specify a FormatFieldMethod for the specific column. It will be executed for each cell from that column when its initialized on the server.
There’s an example on how to set that method here:
http://ko.infragistics.com/community/forums/t/19758.aspx
That will allow you to format the value on the server before its displayed .
Since this formatting is done on the server however after you edit the cell you would have to directly commit the change to the server to have that format be displayed instead of the actual value after the user is exits edit mode.
Let me know if you have any questions or concerns.
Developer Support Engineer II