Datagrid not supported Refresh after add, delete, ... ?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Datagrid not supported Refresh after add, delete, ... ?

  1. #1
    Join Date
    Mar 2008
    Posts
    110

    Datagrid not supported Refresh after add, delete, ... ?

    suppose I have database access:
    Dim Conn As ADODB.Connection

    Set RS = Nothing
    Set RS = New Recordset

    Set Conn = New ADODB.Connection
    Conn.Open ConnectionStringHere

    RS.Open "SELECT Fields " & _
    "FROM Table WHERE Whatever = ?"
    Conn, adOpenStatic, adLockOptimistic
    Datagrid.DataSource = RS

    when you perform the insert, delete, add new data, datagrid refresh the data can not although I have to use appearance Datagrid.Refresh new data is entered but does not appear, check the data in have access but do not anticipate new output datagrid except close all open programs to emerging new data on the grid, the operations insert, delete, add items via the command. Execute (strSQL ), why not refresh the datagrid? and how to fix?

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Try clearing the grid and reloading it from the database.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. C#Net2003 - Add CheckBox in DataGrid
    By Lennie in forum .NET
    Replies: 14
    Last Post: 11-10-2009, 09:39 PM
  2. Replies: 0
    Last Post: 01-26-2003, 10:19 AM
  3. Problem using delete method in Datagrid
    By Giovanna in forum ASP.NET
    Replies: 1
    Last Post: 10-04-2001, 12:10 PM
  4. Replies: 0
    Last Post: 03-27-2001, 08:59 AM
  5. Replies: 2
    Last Post: 11-27-2000, 06:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center