Thursday, February 23, 2012

Update Choice Column value in Item Updating Event

Leave a Comment
One of my friend was facing issue to update value of choice column in Item Updating event.  Founded solution that if value of list item is needed to be change in item updating event then set after properties of property  and then fire base item updating event.

Reference Code  :

       public override void ItemUpdating(SPItemEventProperties properties)
       {
           properties.AfterProperties["Status"] = "Item1";
           base.ItemUpdating(properties);
       }

0 comments: