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

    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
    Sterling Heights, Michigan
    Try clearing the grid and reloading it from the database.

Similar Threads

  1. C#Net2003 - Add CheckBox in DataGrid
    By Lennie in forum .NET
    Replies: 14
    Last Post: 11-10-2009, 10:39 PM
  2. Replies: 0
    Last Post: 01-26-2003, 11: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, 09:59 AM
  5. Replies: 2
    Last Post: 11-27-2000, 07: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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

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