Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
545
Can you set individual cells to be not selectable/ activable based on value at run time?
posted

I have a grid with 30 rows and 18 columns. I only want the user to be able to select/ activate 4 of the rows (based on value) and only some of the cells based on value at runtime. I would prefer to do this in vb (code behind) but could use JavaScript if requried.  In pseudo code:

If not row.activableflag then
           set all cells in row not activeable
Else
          if cellvalue > 0 then
                set cell activable
          else
                set cell notactivable
           end if
End If