Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default fully datagrid edit

    Hi

    I have a datagrid and I want to click on a button to edit all the row of the
    datagrid.
    How can I edit all the datagrid jus t with a button click?

    Thanks


    arnold Guest

  2. Similar Questions and Discussions

    1. fully editable datagrid causing crash
      i need to display up to possibly a few hundred rows from a database table in a datagrid that is fully editable. there need to be 5 editable...
    2. fully editable Datagrid..not bound to database..
      Hello ppl I read an article in this forum regarding constructing a datagrid not bound to a database. My question is on those line..though not...
    3. Fully editable datagrid
      Hi, I need to have a fully editable datagrid control for my webforms. I have managed to get the control so that I have one edit button at the...
    4. Fully multiple, editable dynamic datagrid.
      Hi, I've written previously, to no avail. Can someone please help, I am looking for a working code example, that allows one to create a datagrid...
  3. #2

    Default Re: fully datagrid edit

    There is two ways
    1. Right Button in Datagrid, Property Builder, Colummns, Button Column and
    select the Edit, Update, Button Column

    2. The other way is to create a template column, and in the template put a
    button and in its property commandName write Edit

    Both, fire the EditCommand Event in DataGrid

    write this code

    Datagrid1.EditItemIndex = e.Item.ItemIndex
    Datagrid1.DataSource = ds
    Datagrid1.DataBind


    Joel

    "arnold" <arnold@freesurf.fr> wrote in message
    news:OfUocmIhDHA.2080@TK2MSFTNGP12.phx.gbl...
    > Hi
    >
    > I have a datagrid and I want to click on a button to edit all the row of
    the
    > datagrid.
    > How can I edit all the datagrid jus t with a button click?
    >
    > Thanks
    >
    >

    Joel Guest

  4. #3

    Default Re: fully datagrid edit

    Thanks for the answer but my problem is that I want to edit all the row at
    the same time by clicking on a button.

    Thanks

    Arnaud

    "Joel" <jjfrancia@hotmail.com> wrote in message
    news:eT0Q7fLhDHA.884@TK2MSFTNGP10.phx.gbl...
    > There is two ways
    > 1. Right Button in Datagrid, Property Builder, Colummns, Button Column and
    > select the Edit, Update, Button Column
    >
    > 2. The other way is to create a template column, and in the template put a
    > button and in its property commandName write Edit
    >
    > Both, fire the EditCommand Event in DataGrid
    >
    > write this code
    >
    > Datagrid1.EditItemIndex = e.Item.ItemIndex
    > Datagrid1.DataSource = ds
    > Datagrid1.DataBind
    >
    >
    > Joel
    >
    > "arnold" <arnold@freesurf.fr> wrote in message
    > news:OfUocmIhDHA.2080@TK2MSFTNGP12.phx.gbl...
    > > Hi
    > >
    > > I have a datagrid and I want to click on a button to edit all the row of
    > the
    > > datagrid.
    > > How can I edit all the datagrid jus t with a button click?
    > >
    > > Thanks
    > >
    > >
    >
    >

    arnold Guest

  5. #4

    Default Re: fully datagrid edit

    "arnold" <arnold@freesurf.fr> wrote in message
    news:OfUocmIhDHA.2080@TK2MSFTNGP12.phx.gbl...
    > Hi
    >
    > I have a datagrid and I want to click on a button to edit all the row of
    the
    > datagrid.
    > How can I edit all the datagrid jus t with a button click?
    Arnold, have a look at this article:

    [url]http://www.dotnetjohn.com/articles/articleid83.aspx[/url]

    --

    Jos Branders


    Jos Guest

  6. #5

    Default Re: fully datagrid edit

    Thank you jos

    But my problem is to edit all the row just by the click of one button.
    I want to use a normal datagrid and click on a button in order for the
    datagrid to become editable. Like that I can change the info for all the
    row in one time.
    And then I click another button to save everything.

    Thanks a lot

    Arnold

    "Jos" <josnospambranders@fastmail.fm> wrote in message
    news:eLnSdtRhDHA.4088@tk2msftngp13.phx.gbl...
    > "arnold" <arnold@freesurf.fr> wrote in message
    > news:OfUocmIhDHA.2080@TK2MSFTNGP12.phx.gbl...
    > > Hi
    > >
    > > I have a datagrid and I want to click on a button to edit all the row of
    > the
    > > datagrid.
    > > How can I edit all the datagrid jus t with a button click?
    >
    > Arnold, have a look at this article:
    >
    > [url]http://www.dotnetjohn.com/articles/articleid83.aspx[/url]
    >
    > --
    >
    > Jos Branders
    >
    >

    arnold Guest

  7. #6

    Default Re: fully datagrid edit

    check out this article,
    [url]http://www.microsoft.com/india/msdn/articles/SolutionstoTopFourQuestions.asp[/url]
    x

    --
    Saravana
    Microsoft India Community Star,MC**
    [url]www.extremeexperts.com[/url]



    "arnold" <arnold@freesurf.fr> wrote in message
    news:OfUocmIhDHA.2080@TK2MSFTNGP12.phx.gbl...
    > Hi
    >
    > I have a datagrid and I want to click on a button to edit all the row of
    the
    > datagrid.
    > How can I edit all the datagrid jus t with a button click?
    >
    > Thanks
    >
    >

    Saravana Guest

  8. #7

    Default Re: fully datagrid edit

    arnold wrote:
    > Thank you jos
    >
    > But my problem is to edit all the row just by the click of one button.
    > I want to use a normal datagrid and click on a button in order for
    > the datagrid to become editable. Like that I can change the info for
    > all the row in one time.
    > And then I click another button to save everything.
    Then just add these lines to your DataGrid:
    <Columns>
    <asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update"
    CancelText="Cancel" EditText="Edit">
    </asp:EditCommandColumn>
    </Columns>

    Also handle the appropriate events. This is the EditCommand event:

    Sub DataGrid1_OnEditCommand(Sender As Object, e As DataGridCommandEventArgs)
    DataGrid1.EditItemIndex = e.Item.ItemIndex
    BindGrid()
    End Sub

    --

    Jos Branders


    Jos Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139