开发者

Powerbuilder: Making certain rows editable and certain rows non-editable in a datawindow

开发者 https://www.devze.com 2023-01-22 13:36 出处:网络
how can I make certain r开发者_开发百科ows editable and certain rows non-editable of a datawindow?

how can I make certain r开发者_开发百科ows 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号