auto generated edit command (gridview)

Discussion in 'ASP .Net' started by JohnE, Sep 21, 2009.

  1. JohnE

    JohnE Guest

    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
     
    JohnE, Sep 21, 2009
    #1
    1. Advertisements

  2. =?Utf-8?B?Sm9obkU=?= <> wrote in
    news::

    > 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! |
    *******************************************
     
    Gregory A. Beamer, Sep 21, 2009
    #2
    1. Advertisements

  3. JohnE

    JohnE Guest

    "Gregory A. Beamer" wrote:

    > =?Utf-8?B?Sm9obkU=?= <> wrote in
    > news::
    >
    > > 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
     
    JohnE, Sep 22, 2009
    #3
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. San Diego Guy
    Replies:
    0
    Views:
    755
    San Diego Guy
    Aug 7, 2003
  2. =?Utf-8?B?a2Vu?=
    Replies:
    1
    Views:
    10,703
    Wiktor Zychla [C# MVP]
    Jan 23, 2006
  3. Jason
    Replies:
    3
    Views:
    17,513
    Jan Hyde
    May 8, 2006
  4. BillE
    Replies:
    2
    Views:
    1,682
    BillE
    Jun 18, 2007
  5. TJ
    Replies:
    5
    Views:
    1,222
    Walter Wang [MSFT]
    Jun 27, 2006
  6. prakash
    Replies:
    2
    Views:
    836
    prakash
    Apr 11, 2005
  7. Jaime Stuardo

    GridView control enters edit mode when I click Edit link twice

    Jaime Stuardo, Apr 7, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    670
    Jaime Stuardo
    Apr 7, 2006
  8. RBM
    Replies:
    1
    Views:
    271
Loading...