Displaying additional fields on edit in datagrid

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

  1. #1

    Default Displaying additional fields on edit in datagrid

    I built a sweet data grid to display contacts, custom paging, bidirectional
    sorting,
    adjustable row display count, in-place editting, all the stops.
    I turned out pretty cool.
    I followed tutorials from [url]www.4guysfromrolla.com[/url]
    [url]http://aspnet.4guysfromrolla.com/articles/040502-1.aspx[/url]

    Problem: I am currently displaying 5 data columns (also a '+' tree view
    image which I intend to use in an event, a check box column and an 'edit'
    column so 8 in total)

    When a user goes to edit a record, I want to display an additional 15 fields
    which they can also edit, while remaining in the grid.
    I do not want to increase the width of the datagrid on this event. I would
    like the grid to expand vertically by adding additional rows for that
    specific
    record the user clicks to edit to accommodate the additional data that can
    be editted.
    I also want to build the option to just display the extra data when clicking
    on the
    + image I have for each record in the datagrid, like a tree view type
    scenario.

    Kind of the analogy, give someone a piece of fruit and they ask for the
    whole tree,
    but I am sure it can be done somehow,
    I just lack the skill and vision to execute it without some guidance at this
    point...

    Does anyone have an example of how this can be accomplished or some guidance
    on how to accomplish this task?

    Much thanks and appreciation in advanced!
    Ryan




    Ryan Anderson Guest

  2. Similar Questions and Discussions

    1. Would like to load a datagrid already in edit mode instead of having the user click the edit button
      Now my asp.net datagrid shows an edit button and clicking it puts the datagrid in edit mode. I would like to: 1) possilby load the page already...
    2. Set the width of the edit textbox after clicking on Edit link in datagrid...
      Hi There, I have a data grid where I have a couple of columns as follows: ----------------------------------------- |id | textual...
    3. Displaying fields verticaly while editing DataGrid
      How can I display headers and fields verticaly while editing data in a DataGrid? - Símun D. Simonsen
    4. Add/Edit/Delete Fields in Datagrid
      You can edit in-place abyway. Suggest you consifer using right click invoked context menus for Insert/Delete functions, its cleaner "Jordan...
    5. Displaying parent fields in a datagrid?
      Not to worry - I did with a TemplateColumn "Simon Storr" <sstorr@sdasolutions.com> wrote in message news:uPKuJStSDHA.1688@TK2MSFTNGP11.phx.gbl......
  3. #2

    Default Re: Displaying additional fields on edit in datagrid

    Hi Ryan

    I handle this by using a datalist containing a single record. It can't be
    displayed inside the grid, but sits to the right of the grid. It edits all
    fields, including the ones in the grid. As it is a DataList, you can make it
    look however you like. In particular, spacing can be used to separate groups
    of related fields.

    Regards

    Ron
    "Ryan Anderson" <ryanflyan@hotmail.com> wrote in message
    news:utcvN5tUDHA.1956@TK2MSFTNGP10.phx.gbl...
    > I built a sweet data grid to display contacts, custom paging,
    bidirectional
    > sorting,
    > adjustable row display count, in-place editting, all the stops.
    > I turned out pretty cool.
    > I followed tutorials from [url]www.4guysfromrolla.com[/url]
    > [url]http://aspnet.4guysfromrolla.com/articles/040502-1.aspx[/url]
    >
    > Problem: I am currently displaying 5 data columns (also a '+' tree view
    > image which I intend to use in an event, a check box column and an 'edit'
    > column so 8 in total)
    >
    > When a user goes to edit a record, I want to display an additional 15
    fields
    > which they can also edit, while remaining in the grid.
    > I do not want to increase the width of the datagrid on this event. I would
    > like the grid to expand vertically by adding additional rows for that
    > specific
    > record the user clicks to edit to accommodate the additional data that can
    > be editted.
    > I also want to build the option to just display the extra data when
    clicking
    > on the
    > + image I have for each record in the datagrid, like a tree view type
    > scenario.
    >
    > Kind of the analogy, give someone a piece of fruit and they ask for the
    > whole tree,
    > but I am sure it can be done somehow,
    > I just lack the skill and vision to execute it without some guidance at
    this
    > point...
    >
    > Does anyone have an example of how this can be accomplished or some
    guidance
    > on how to accomplish this task?
    >
    > Much thanks and appreciation in advanced!
    > Ryan
    >
    >
    >
    >

    Ron McNulty 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