Bestcomy.net blog

Coding for funny

导航

Get the true value of a calculate field in SharePoint

Posted on 2006-09-28 16:30  bestcomy  阅读(919)  评论(0编辑  收藏  举报

I am new for SharePoint less than one month. Yesterday, when I tried to get a calculated field value from the SPListItem, I always got an original value like float;#16.0000000. After one day headache, I get an idea from SDK, the SPListItemCollection has a method named GetDataTable, this method like an interpreter who translate SPFieldType into .net data type natively. so I can get the true value of the calculate field value easily.