I'd like to update by code several items in a list with drop down field.
My code:
*****************************
item["fieldParent"] = valueParent;
item["fieldChild"] = valueChild;
item["fieldChildChild"] = valueChildChild;
item.SystemUpdate();
list.Update();
***************************
It works for parent but not for child fields; text is updated in the display column (allitems.aspx) but in EditForm, the selected value in combo box is incorrect (first item displyed by default)
How can I do to update the 3 fields with consistent data?
Thanks.
My code:
*****************************
item["fieldParent"] = valueParent;
item["fieldChild"] = valueChild;
item["fieldChildChild"] = valueChildChild;
item.SystemUpdate();
list.Update();
***************************
It works for parent but not for child fields; text is updated in the display column (allitems.aspx) but in EditForm, the selected value in combo box is incorrect (first item displyed by default)
How can I do to update the 3 fields with consistent data?
Thanks.