M
Matt
I am trying to build a Datagrid whoose edit column contains an edit and
delte image button. However I want to be able to determine via another
column whether or not the delete button should be presented or not.
I have a column called "Submitted" and if that column = "Yes" then they
CAN NOT delete the row, otherwise they can.
I need to somehow do an if statement or something that will allow me to
only show the delete button some of the time.
I know I cannot do an IF loop within my <%# %> block or atleast I
cannot figure out how to.
I tried creating a function within the <%# %> but I cannot figure out
how to pass the "DataGridCommandEventArgs" into the function which I
would need to determine which row I am in.
Any help much aprreciated.
Thanks
Matt
delte image button. However I want to be able to determine via another
column whether or not the delete button should be presented or not.
I have a column called "Submitted" and if that column = "Yes" then they
CAN NOT delete the row, otherwise they can.
I need to somehow do an if statement or something that will allow me to
only show the delete button some of the time.
I know I cannot do an IF loop within my <%# %> block or atleast I
cannot figure out how to.
I tried creating a function within the <%# %> but I cannot figure out
how to pass the "DataGridCommandEventArgs" into the function which I
would need to determine which row I am in.
Any help much aprreciated.
Thanks
Matt