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. Data Grids

Data Grids

Scheduled Pinned Locked Moved Visual Basic
databasehelpannouncement
3 Posts 2 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.
  • R Offline
    R Offline
    Robert Gronenthal
    wrote on last edited by
    #1

    I would like to have a datagrid that automatically 'Refreshes' the dataset every time a new record is entered into the sql database. When I run the update on the dataset, fill the datagrid and use the expand statement, it does not fill out the rows. Any help / suggestions to achieving this is appreciated. Thanks! Bob Gronenthal

    P 1 Reply Last reply
    0
    • R Robert Gronenthal

      I would like to have a datagrid that automatically 'Refreshes' the dataset every time a new record is entered into the sql database. When I run the update on the dataset, fill the datagrid and use the expand statement, it does not fill out the rows. Any help / suggestions to achieving this is appreciated. Thanks! Bob Gronenthal

      P Offline
      P Offline
      Pradeep C
      wrote on last edited by
      #2

      Can you show us your code piece ? ----------------------------------------------------------- "I think there is a world market for maybe 5 computers" Thomas Watson, chairman of IBM, 1943 "There is no reason anyone would want a computer in their home" Ken Olson, chairman & founder of Digital equipment, 1977 "This 'telephone' has too many shortcomings to be seriously considered as a means of communication. The device is ingerently of no value to us." Western Union internal memo, 1876 "640 K ought to be enough for anybody." Bill Gates, 1981 "Computers in the future may

      R 1 Reply Last reply
      0
      • P Pradeep C

        Can you show us your code piece ? ----------------------------------------------------------- "I think there is a world market for maybe 5 computers" Thomas Watson, chairman of IBM, 1943 "There is no reason anyone would want a computer in their home" Ken Olson, chairman & founder of Digital equipment, 1977 "This 'telephone' has too many shortcomings to be seriously considered as a means of communication. The device is ingerently of no value to us." Western Union internal memo, 1876 "640 K ought to be enough for anybody." Bill Gates, 1981 "Computers in the future may

        R Offline
        R Offline
        Robert Gronenthal
        wrote on last edited by
        #3

        This is the code as it stands right now... 'Updates the current dataset the datagrid is using Me.SqlDAFire_Cur.Update(Me.DsFire_Cur1) Me.SqlDAFire_Cur.Fill(Me.DsFire_Cur1) 'Rebind the datasource to the datagrid Me.DataGridFire.DataSource = Nothing Me.DataGridFire.DataSource = Me.DsFire_Cur1 Me.DataGridFire.Expand(-1) It does not expand the entire datagrid with the records though and since I would like this automated I was thinking of putting this into a timer event. Thanks, Bob

        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