How to restrict the specific column for update ?

Dear,

 How to restrict the specific column for updatation? I have one auto genrated cloumn and i don’t want to update it at any pt. , for this i have used “setDataColumns” method but it’s not working…

please help me to reslove this problem…


Thanks,
- Nikhil
 

Are you using connector at server side? In such case it can be done as

function limit_fields($action){
$action->remove_field(“someName”);
}
$grid->event->attach(“beforeProcessing”,“limit_fields”)

where someName - is the name of field which you want to exclude from db operations