Sharepoint: Convert a SPFieldMultilineText to SPFieldText

Posted by driAn on Stack Overflow See other posts from Stack Overflow or by driAn
Published on 2010-04-08T08:17:29Z Indexed on 2010/04/08 8:23 UTC
Read the original article Hit count: 1065

Filed under:
|
|

Hi

Is it possible to programmatically change a "multi-line text field" to "single-line text field" ?

SPFieldMultiLineText field = list.Fields["sample"] as SPFieldMultiLineText;
// how to change the type to 'single line' now ?

Or do I need to create an additional field (with a similiar name) and migrate the content?

Thanks for any help.

© Stack Overflow or respective owner

Related posts about sharepoint

Related posts about fields