🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #5452

Re: How to update TDBGrid item ?

#5452
From: Mark Cashman
Date: Tue, 08 May 2001 00:32
23 lines
1651 bytes
Hi, Guy!

Unless the things you want to select have changed, you can refresh the
query with

    Query1->Close();
    Query1->Open();

An insert statement in SQL does not produce a result set, so you need to
have a query to display in the grid. You connect it with the normal
pattern of having a data set (the query) connected to the data aware
control (the grid) via a TDataSource object.

I hope this helps.

------
Mark Cashman (TeamB - C++ Builder), creator of The Temporal Doorway at
http://www.temporaldoorway.com
- Original digital art, writing, music and more -
C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring
(Join us!)
http://www.temporaldoorway.com/programming/index.htm
------
Technical Details
Message-ID: <3AF73E84.14C4DE5D@temporaldoorway.com>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!hermes2.visi.com!news-out.visi.com!news-out.visi.com!hermes.visi.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3af40ac4_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,cc43abed796b911b
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-05-07 17:40:09 PST
Message-ID: <3AF73E84.14C4DE5D@temporaldoorway.com>
Date: Mon, 07 May 2001 20:32:04 -0400
From: Mark Cashman <mcashman@temporaldoorway.com>
Reply-To: mcashman@temporaldoorway.com
X-Mailer: Mozilla 4.77 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: How to update TDBGrid item ?
References: <3af40ac4_1@dnews>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.14.197.193
X-Trace: dnews 989281886 24.14.197.193 (7 May 2001 17:31:26 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!hermes2.visi.com!news-out.visi.com!news-out.visi.com!hermes.visi.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews