Grid view

Discussion in 'ASP .Net' started by sonali_aurangabadkar@yahoo.com, Jun 28, 2006.

  1. Guest

    i want to edit whole grid on singel button click
     
    , Jun 28, 2006
    #1
    1. Advertising

  2. Possible, but think it through. If you provide too many rows, this could be
    a nightmare.

    How to do this? I can think of a couple of directions:

    1. Create all columns a templated columns with an editable version. If the
    button is pushed, refill the grid, but switch to the editable view by using
    the grid events. At this point in time you are circumventing the natural
    order of things. You also have to capture the input back when the editing is
    done, which means pulling from a wide variety of controls.

    2. Create your own grid control that allows this easily. This is the most
    reusable solution and you should be able to inherit fromt he current control
    and alter to your specs.

    3. Code the painting of the form completely (i.e. dump the grid view and
    display data in a table from code behind). You then have complete control. I
    would consider creating a control for the individual editable rows, however,
    as it will be easier to reassemble the data if a row is contained in a
    single control (iterate through controls in the "table" container and then
    iterate through each of its controls), as the control is akin to a data row
    while the individual controls are akin to columns.

    Good luck!

    --
    Gregory A. Beamer

    *************************************************
    Think Outside the Box!
    *************************************************
    <> wrote in message
    news:...
    >i want to edit whole grid on singel button click
    >
     
    Cowboy \(Gregory A. Beamer\), Jun 28, 2006
    #2
    1. Advertising

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. Girish
    Replies:
    4
    Views:
    704
    Patrick.O.Ige
    Jul 19, 2005
  2. =?Utf-8?B?QXNzYW5LaGFuIElzbWFpbA==?=

    How to transfer a value from an Invisible Grid to an visible Grid

    =?Utf-8?B?QXNzYW5LaGFuIElzbWFpbA==?=, Oct 13, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    481
    =?Utf-8?B?QXNzYW5LaGFuIElzbWFpbA==?=
    Oct 17, 2005
  3. Luqman
    Replies:
    2
    Views:
    3,858
    Luqman
    Feb 1, 2006
  4. wahtnamas
    Replies:
    0
    Views:
    929
    wahtnamas
    May 1, 2009
  5. Parthiv Joshi
    Replies:
    1
    Views:
    768
    Samuel L Matzen
    Jul 6, 2004
Loading...

Share This Page