dynamically hide/show delete

N

nikedog

Is there a way to selectively hide/show the Delete command button on rows in the datagrid? I realize i can ignore the delete on rows where the is not allowed, but it would be cleaner to not show it.

Any advice appreciated.
 
E

Eliyahu Goldin

There is a number of ways of doing this. You can databind Visible property,
or you can set it in PreRender event, or you can change the style for the
button in PreRender.

Eliyahu

Is there a way to selectively hide/show the Delete command button on rows
in the datagrid? I realize i can ignore the delete on rows where the is not
allowed, but it would be cleaner to not show it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top