Presently locked columns are not editable.Whats missing in this piece of code..
We need to make them unlocked then only they are editable