Forum Discussion

googleid_117610's avatar
13 years ago

Best way to test that a group of edit boxes are disabled?


I have a grid with a panel next to it for editing multiple rows at once.  I want to ensure that controls in the panel are disabled if no rows in the grid are selected (and vice versa).  However, I do not want to put limitations on how the developer disables the edit boxes.  For example they could,

 - set all of them to readonly or disabled


 - set the panel as disabled


 - set the panel's parent as disabled


 


Basically, I want to ensure that clicking on or tabbing to one of the edit boxes does not give it focus.

1 Reply


  • Hi Lawrence,


     


    The panel containing the controls may have the Disabled property that you can check. Otherwise, you can check this property for each control.