Databound Update(untyped dataset)

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

  1. #1

    Default Databound Update(untyped dataset)

    I am trying to perform an update of a databound datagrid. I just cant
    figue out how to update the rows and though. Every example i come
    across either uses that example with the FindbyCategoryID method in a
    typed dataset or uses a DataView which i dont think i want to do
    either.
    How do i get the inputted values of the selected fields out of the
    datagrid and update the dataset from these?
    Can anybody help please?
    Thanks

    steroche Guest

  2. Similar Questions and Discussions

    1. HELP! Databound Update(untyped dataset)
      I am trying to perform an update of a databound datagrid. I just cant figue out how to update the rows and though. Every example i come across...
    2. HELP with dataset update
      I am trying to update a dataset on a web page. I keep getting concurrency validation error. Here is the code. I have shortened it for posting...
    3. Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset
      Hi All, I am facing problem in copying content of table from a untyped dataset into to a table inside the typed dataset. I wanted to copy the data...
    4. Update database using dataset
      I have a number of text boxes that are all data bound to a data set. I would like the user to be able to make changes to these text boxes and then...
    5. update dataset
      How can I update a dataset loaded with data from an xml file? The structure of the xml: <Poll> <Choice>First Choice</Choice>
  3. #2

    Default RE: Databound Update(untyped dataset)

    "steroche" wrote:
    > I am trying to perform an update of a databound datagrid. I just cant
    > figue out how to update the rows
    There are many ways. One simple way is to use a primary key on the table.
    When you bind the DataTable to the grid you specify a DataKeyField. Then in
    the method that updates your data you find the rows in the table by using
    that DataKey. I have an example on this link that does that:
    [url]http://www.societopia.net/samples/datagrid_3.aspx[/url]

    This example also demonstrates how to highlight a selected row on a grid
    while displaying the details of that row in another grid (which also answers
    the question that you posted in another thread)

    HTH,
    Phillip Williams
    [url]http://www.societopia.net[/url]
    [url]http://www.webswapp.com[/url]

    Phillip Williams 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