Dear All,
I am using Ultrawebgrid in my application.
I have added 3 ultragridcolumns, two are hyperlinks and one is button.
Depending on the condition hyperlink are visible for only the specified row and button aur visible for all the rows.
I just want to hide the button only for the specified row.
Can you please help me out.
Thanks,
Preet Sahani.
I have a similar problem. I've seen this mentioned as a bug in V6.2 but I can't get it working in V7.2 With the code below, the delete button still shows in all cells.
Am I doing something wrong here in the grid_InitializeRow event:
if (canDelete())
e.Row.Cells.FromKey("DeleteButton").Column.Hidden = false;
else
e.Row.Cells.FromKey("DeleteButton").Column.Hidden = true;
I think you just want to hide button for that perticuler row not whole grid.
if that is the case then you are doing wronge thing.
what you are doing is hiding whole column not just one cell by doing
I guess for the last row button should be showed and column hidden should be made false so it is showing column in whole grid.
try this thing. put a value in the last row for which you do have to hide button and it should hide whole column instead of just that thing. that will make confirm of what I am saying.
you can do this thing.
e.Row.Cells.FromKey("DeleteButton").Reset()
and then set stylesheet whatever is set for that row. because this will remove style also.