PC Review


Reply
Thread Tools Rate Thread

auto generated edit command (gridview)

 
 
JohnE
Guest
Posts: n/a
 
      21st Sep 2009
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
 
Reply With Quote
 
 
 
 
Gregory A. Beamer
Guest
Posts: n/a
 
      21st Sep 2009
=?Utf-8?B?Sm9obkU=?= <(E-Mail Removed)> wrote in
news:034F42C2-9784-476F-B6C2-(E-Mail Removed):

> 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! |
*******************************************
 
Reply With Quote
 
JohnE
Guest
Posts: n/a
 
      22nd Sep 2009


"Gregory A. Beamer" wrote:

> =?Utf-8?B?Sm9obkU=?= <(E-Mail Removed)> wrote in
> news:034F42C2-9784-476F-B6C2-(E-Mail Removed):
>
> > 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! |
> *******************************************
>


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

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you edit auto generated Partial Class Designer VB code? Mike Microsoft VB .NET 26 18th May 2009 09:21 PM
Can you edit auto generated Partial Class Designer VB code? Mike Microsoft VB .NET 0 17th May 2009 04:40 PM
Formatting a date in a gridview with auto-generated fields BillE Microsoft ASP .NET 2 18th Jun 2007 03:09 PM
Using Edit Command Gridview =?Utf-8?B?ZGVuIDIwMDU=?= Microsoft ASP .NET 0 9th Oct 2006 01:37 PM
HIde a column in GridView using auto-generated columns... Jason Microsoft ASP .NET 3 8th May 2006 09:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:36 PM.