Set Datasetgrid column not editable

Hi, Is there a way to set the column of a Dataset to uneditable. I tried using “enable=‘false’” but it disabled the entire datasetgrid. I only wanted to make a few columns uneditable.

Can you explain a little more what you’re doing?
Are you showing your data in a tableview? In that case you can set a column to be not editable using the element name:

elements.yourelementname.editable = false;

Thanks for the reply.

DatasetGrid is a Servoy Bean. So, I might not be able to use your code.

No, I thought you were using a regular table view.
I never used the DatasetGrid bean, so I can’t help you with that.

All right thanks.

Does anybody in the forum use Datasetgrid? I’m trying to figure out how I could make a column uneditable.

Hi Erik,

I think the quickest way would be to contact the author of this bean via support at servoy-plugins.de .

Hope this helps.

ROCLASI:
Hi Erik,

I think the quickest way would be to contact the author of this bean via support at servoy-plugins.de .

Hope this helps.

I emailed them and I had no replies.

Patrick replied already and the function to use is setColumnEditable(x,false), where x is the column index. Worked well.