views:

33

answers:

1

Hi, how can I make certain rows editable and certain rows non-editable of a datawindow?

I am adding the rows using pfc_addrow() event of the datawindow, and I want some of them to be editable and some of them to be non-editable.

Is there any way to do it?

+2  A: 

You could set the 'Protect' property of all the columns equal to the value of another, hidden column, either in the properties dialog or like this:

dw_1.Modify("column_name.Protect='hidden_column'")

Then on the rows you wish to be non-editable, set your hidden column value to 1.

Colin Pickard
Thanks!!!!!!!!!
Night Shade