简体   繁体   中英

How to disable the selected rows

I have a data window with a checkbox. I want to disable the selected rows. How can I do that? Also, please explain to me the code below. I saw it online and it works fine but it only disable the first selected row. Thank you

dw_unreportedprall.object.sel.protect = '0~tif(GetRow()=' + string(ll_ctr) + ',1,0)'

I assume the variable 'll_ctr' holds the value for the row you are checking. If so you could try:

...'0~tif(IsSelected(' + string(ll_ctr) + '),1,0)'

Your code only works on a single row because the GetRow() method only gives you the current row (the one with focus) in a datawindow.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM