Microsoft KB Archive/929253

= The value of the first column is erased when you edit the value of the second column in Windows SharePoint Services 2.0 =

Article ID: 929253

Article Last Modified on 12/28/2006

-

APPLIES TO


 * Microsoft Windows SharePoint Services

-



SYMPTOMS
When you edit the value of the second column of a list in Microsoft Windows SharePoint Services 2.0, the value of the first column is erased. This occurs if the following conditions are true:
 * The Windows SharePoint Services 2.0 list has two custom columns that contain values.
 * You use the datasheet view when you edit the value of the second column.
 * You programmatically set the ReadOnly property of the first column to True by using the Lists Web service.



WORKAROUND
To work around this issue, apply the following code to set the ReadOnly property to True: localhost.Lists listService = new localhost.Lists; listService.Credentials= System.Net.CredentialCache.DefaultCredentials; XmlDocument xmlDoc = new System.Xml.XmlDocument; XmlNode ndUpdateFields = xmlDoc.CreateNode(XmlNodeType.Element, &quot;Fields&quot;, &quot;&quot;); ndUpdateFields.InnerXml = &quot;&quot; + &quot;&quot; + &quot;&quot;; try {       XmlNode ndReturn = listService.UpdateList(&quot;Events&quot;, null, null, ndUpdateFields, null, null); MessageBox.Show(ndReturn.OuterXml); }   catch (Exception ex) {       MessageBox.Show(&quot;Message:\n&quot; + ex.Message + &quot;\nStackTrace:\n&quot; + ex.StackTrace); } Note Use the same case sensitivity in the XML fields. For example, use ReadOnly='True' instead of ReadOnly='TRUE'.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section.

Keywords: kbexpertiseinter kbtshoot kbprb KB929253

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.