for example.. in case of 2 buttons the first enable the second disable and when first has clicked became disable and the second enable and the inverse... in grid case i control a button enable status by grid click... and i want do the inversa way,,, if i click a button the grid became disable.. in other way before i click on the button grid is clicable after click on button is no more... like button.enable = false...
in grid exist a proprieti similar?? or someting like that? tks
Hello,
Very good suggestions in this thread - I just want to add that this is typically controlled by properties - they typically are located directly on the DisplayLayout collection and start width Allow...
Example:
<displaylayout bordercollapsedefault="Separate" name="UltraWebGrid1" AllowDeleteDefault="Yes" AllowUpdateDefault="Yes" AllowAddNewDefault="Yes" rowheightdefault="20px" version="4.00">
Setting the Allow... properties to No will disable them - grid will essentially be read only.
I don't think there's such a property.. If you want to emulate this behaviour you should have to set several properties like AllowEditing and even RowSelection.. I don't have infragistics installed in this machine so I cant tell you which ones and not even how many, but i'm pretty sure there's more than 5..
Now, if what you want to do is to prevent user from any kind of interaction with the webgrid, what you can do is to place the webgrid inside of a WebGroupBox and disable this control on your button's click.. Disabling the WGB will also 'disable' the webgrid within.