I am adding a column in ultrawebgrid with column.type as Button. I want to enable / disable it depending upon the value in the data table coulmn which is bound to this ultrawebgrid.
I will really appreciate a quick respnse.
Thanks,
SP.
So you want to enable/disable on a row by row basis?
If so, you can loop through the rows in the grid and examine the values of the cell in question, then set the .AllowEditing property of the cell based upon the value it finds.
air code:
for each r as ultragridrow in yourgrid.rows
if r.cells.fromkey("fieldkey").value = somevalue then
r.cells.fromkey("buttonfield").allowediting = no
end if
next
Hi gernblandston,
I tried setting cell.AllowEditing ro no.
But the CellButton is not getting Disabled.
It works for normal cell though Any Ideas?
Regards
AKVarms
hi gernblandston
I have the same Problem. Did you find the Solution.
Thank you
Has anyone found a way to disable a cell button?
or is this officially in the black void?
this is the third echo...
Good Morning davidgjohnsonabc and all
i have not find a solution to that, what i did i grayed it out and change the cursor to be a beam. But that could never stop a foolish user from making a force selection. but a inteligent user can see that , the selection is not available, i think before we sell our software to our users, we should let them write an iq test , if they are below average then they are not allowed to buy our software :) because they will click everywhere