auto generated edit command (gridview)

J

JohnE

In the gridview control there can be autogenerated commands (Select, Edit,
etc). When Edit is selected, two other commands appear, Update and Cancel.
Is it possible to have commands appear when the Select command is used?
These other commands would appear and disappear in the same manner as those
do when Edit is used. If it is possible, how is something like that
accomplished? Examples/samples are good as well as links to sites.
Thanks... John
 
G

Gregory A. Beamer

In the gridview control there can be autogenerated commands (Select,
Edit, etc). When Edit is selected, two other commands appear, Update
and Cancel. Is it possible to have commands appear when the Select
command is used? These other commands would appear and disappear in
the same manner as those do when Edit is used. If it is possible, how
is something like that accomplished? Examples/samples are good as
well as links to sites. Thanks... John

If you explicitly code the tags, you can set up as many button fields
(ButtonColumns) as you desire, with each accomplishing a different thing.
http://www.ezzylearning.com/tutorial.aspx?tid=5066444

This can be done in the code, as well:
http://msdn.microsoft.com/en-
us/library/system.web.ui.webcontrols.buttoncolumn.aspx


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

My vacation and childhood cancer awareness site:
http://www.crazycancertour.com

*******************************************
| Think outside the box! |
*******************************************
 
J

JohnE

Gregory A. Beamer said:
If you explicitly code the tags, you can set up as many button fields
(ButtonColumns) as you desire, with each accomplishing a different thing.
http://www.ezzylearning.com/tutorial.aspx?tid=5066444

This can be done in the code, as well:
http://msdn.microsoft.com/en-
us/library/system.web.ui.webcontrols.buttoncolumn.aspx


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

My vacation and childhood cancer awareness site:
http://www.crazycancertour.com

*******************************************
| Think outside the box! |
*******************************************

Mr Beamer, thanks for the info. This is what I need to get me going in the
right direction.
.... John
 

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

Top