Edit, Add , Delete Data from a DataGrid

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

  1. #1

    Default Edit, Add , Delete Data from a DataGrid

    Hi...

    I am pretty new to the .NET especially Visual C++.NET . I have a
    question maybe the experts here can answer. I have an XML file and the
    data from that is displayed on a datagrid. However I wish this data to
    be modified and new data to be added as well as deleted. Any ideas..?
    Sample code.. highly appreciated !!! :-)

    These are my files...

    "parts.xml" - a simple xml file .

    The coding for the dataset and datagrid are given as below....
    private: System::Void button1_Click(System::Object * sender,
    System::EventArgs * e)
    {
    ds = new DataSet();
    ds->ReadXml(S"parts.xml");
    dataGrid1->DataSource=ds;
    }

    Thanx in advance ;-)

    Anish Guest

  2. Similar Questions and Discussions

    1. Delete form - Post data to a table and delete uponsubmit.
      I have a delete form that I'd like to post the data to a table (delete_pcn) and delete upon submit, so that all deletions may be kept track of in...
    2. datagrid with edit option selecting data
      In asp.net web page that has a datagrid, how do you get the value from the selected edit textboxes?
    3. DataGrid contains no data after postback of edit button click...
      This is specifically what is going on in my application:...
    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...
  3. #2

    Default Re: Edit, Add , Delete Data from a DataGrid

    If you want to use an Xml file as a datasource, you might want to look
    into Susan Warren's excellent XmlEditGrid. I wrote an article on this
    some time ago, here:

    [url]http://www.eggheadcafe.com/articles/20040612.asp[/url]

    Peter Bromberg [C# MVP] 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