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
  1. Home
  2. General Programming
  3. C#
  4. Grid View control update delete with dataset disconnected environment.

Grid View control update delete with dataset disconnected environment.

Scheduled Pinned Locked Moved C#
helpcssdatabasetutorialannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sasmi_Office
    wrote on last edited by
    #1

    Dear Friend, Scenario I have one grid view showing user access model having field as 'User'(Textbox), 'Group'(Dropdown), 'View' (Checkbox), 'Edit'(Checkbox) column. I have on Data Set where i stored the data fetch from database. now i bind this dataset to Grid View Control DataSet ds = getData(); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); Note: Where getData() method fetch the data from database. Problem i change only two record from all ten records, now i want to update only that record in my database how could i do this... Actually i know DataSet having HasChange() Method which use to know the changes in dataset but dont know how to use it for the above scenario.. Please help me Thanks and regard's in advance Sasmi

    N V 2 Replies Last reply
    0
    • S Sasmi_Office

      Dear Friend, Scenario I have one grid view showing user access model having field as 'User'(Textbox), 'Group'(Dropdown), 'View' (Checkbox), 'Edit'(Checkbox) column. I have on Data Set where i stored the data fetch from database. now i bind this dataset to Grid View Control DataSet ds = getData(); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); Note: Where getData() method fetch the data from database. Problem i change only two record from all ten records, now i want to update only that record in my database how could i do this... Actually i know DataSet having HasChange() Method which use to know the changes in dataset but dont know how to use it for the above scenario.. Please help me Thanks and regard's in advance Sasmi

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      A little thing like documention might help, http://msdn.microsoft.com/en-us/library/zky7370c.aspx[^]


      I know the language. I've read a book. - _Madmatt

      1 Reply Last reply
      0
      • S Sasmi_Office

        Dear Friend, Scenario I have one grid view showing user access model having field as 'User'(Textbox), 'Group'(Dropdown), 'View' (Checkbox), 'Edit'(Checkbox) column. I have on Data Set where i stored the data fetch from database. now i bind this dataset to Grid View Control DataSet ds = getData(); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); Note: Where getData() method fetch the data from database. Problem i change only two record from all ten records, now i want to update only that record in my database how could i do this... Actually i know DataSet having HasChange() Method which use to know the changes in dataset but dont know how to use it for the above scenario.. Please help me Thanks and regard's in advance Sasmi

        V Offline
        V Offline
        Vimalsoft Pty Ltd
        wrote on last edited by
        #3

        Look how i use it here http://www.codeprojecCoding an N-Tier Application in C# Without Any Wizard: Part II[^]t.com/KB/cs/N-Tier22.aspx

        Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

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