Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
S

SureshRocks

@SureshRocks
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Delete a row from dataset using delete method???
    S SureshRocks

    Hi, Thanks a lot!!! It's working. Thanks once again, Suresh kumar palleti, India.

    C# csharp database xml help tutorial

  • Delete a row from dataset using delete method???
    S SureshRocks

    Hi All, I am new to C# programming with ADO.NET. I tried to delete the specific row but it is not getting affected in the database table. however when i wrote to a XML file, the record seems to be deleted.

    SqlDataAdapter da = new SqlDataAdapter("select * from details", con);
    DataSet ds = new DataSet();
    da.Fill(ds, "details");
    DataRow row = ds.Tables["details"].Rows[0];
    if (row["Name"].ToString() == fi.Name)
    {
    ds.Tables["details"].Rows[0].Delete();
    da.Update(ds.Tables["details"]);
    }
    ds.AcceptChanges();

    Can any one help me out with an example(C#) for better understanding. Thanks in advance.. Suresh.

    C# csharp database xml help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups