all groups > asp.net datagrid control > may 2004 >
You're in the

asp.net datagrid control

group:

dynamically hide/show delete



dynamically hide/show delete nikedog NO[at]SPAM msu.edu
5/31/2004 4:41:01 PM
asp.net datagrid control: 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.

Re: dynamically hide/show delete nikedog NO[at]SPAM msu.edu
6/1/2004 8:11:09 AM
thanks for respone. I found the ItemBound event met my needs
Re: dynamically hide/show delete Eliyahu Goldin
6/1/2004 9:56:03 AM
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

[quoted text, click to view]
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.
[quoted text, click to view]

AddThis Social Bookmark Button