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
  1. Home
  2. General Programming
  3. Visual Basic
  4. i need a code for this please

i need a code for this please

Scheduled Pinned Locked Moved Visual Basic
helptutorial
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.
  • M Offline
    M Offline
    magedhv
    wrote on last edited by
    #1

    now i made this code cmd.CommandText = "select distinct * from reglz where fatrname LIKE '%" & TextBox1.Text & "%' " DataGridView1.Refresh() ad.SelectCommand = cmd ad.Fill(ds, "reglz") DataGridView1.DataSource = ds.Tables("reglz") this code will give me some data in the datagride so what i need to do now is ,to select a number of records to edit in the "fatrname" filed from datagrideview but after i select these number of records i dont know how to edit all the field of this "fatrname" or any field for all the records that i select please help me very importnat

    C 1 Reply Last reply
    0
    • M magedhv

      now i made this code cmd.CommandText = "select distinct * from reglz where fatrname LIKE '%" & TextBox1.Text & "%' " DataGridView1.Refresh() ad.SelectCommand = cmd ad.Fill(ds, "reglz") DataGridView1.DataSource = ds.Tables("reglz") this code will give me some data in the datagride so what i need to do now is ,to select a number of records to edit in the "fatrname" filed from datagrideview but after i select these number of records i dont know how to edit all the field of this "fatrname" or any field for all the records that i select please help me very importnat

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      1 - use real variable names 2 - this code is ripe for SQL injection attacks, you should read up on this and fix it 3 - try using sensible subject lines, so people know what you want At the end of all that, I'm not sure if a datagridview supports editing fields. What does google say ?

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      L 1 Reply Last reply
      0
      • C Christian Graus

        1 - use real variable names 2 - this code is ripe for SQL injection attacks, you should read up on this and fix it 3 - try using sensible subject lines, so people know what you want At the end of all that, I'm not sure if a datagridview supports editing fields. What does google say ?

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        L Offline
        L Offline
        leckey 0
        wrote on last edited by
        #3

        Almost all his posts are 'help' or 'urgent.' He's now on my list.

        _____________________________________________ Flea Market! It's just like...it's just like...A MINI-MALL!

        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