473,671 Members | 2,608 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to use DBGrid1

17 New Member
I am using VB6.0,can anyone tell how to use DBGrid1 to show the records of a table
Plz give me the code
Feb 21 '07 #1
0 989

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1738
by: Luis Esteban Valencia | last post by:
Once a user clicks "add new row", a new row is created in my Datagrid. The datasource is huge so they have to scroll to the bottom of the page to edit the data in the new row. I have come across two EE solutions which use javascript to focus on the textbox in the "editcommandcolumn" mode. However, these solutions were made for non-autogenerated columns. I NEED autogenerated columns for my project. Is it possible to give focus to a...
7
15876
by: wlc04 | last post by:
I would like to be able to set the record source of a report programatically, but I am not having much luck. I have 2 queries which could be the source depending on other parameters in the program, so depending on these parameters I want to change the record source. Any ideas?
6
8873
by: gman_00ph | last post by:
Private Sub Form_Load() With Data1 .DatabaseName = App.Path + "\mydbase.mdb" .RecordSource = "Select * from usertable" .Refresh End With End Sub -------------------------------------------------------------------------------- "mydbase.mdb" is created in Access97
2
318
by: Kenny Stultz | last post by:
I am using a DataGridView control in the unbound mode. When the form is first shown, the upper left cell is highlighted. How can I make some other cell highlighted when the form is first shown. In VB 6 I used to use code like: DBGrid1.Row = 3 DBGrid1.Col = 4 What is the equivalent in VB2005?
9
11657
by: sreekandan | last post by:
Now I have to use DBGrid to edit and retrieve from the database. So how can I do that in VB6.0?.So kindly reply me anyone quickly.
2
1478
by: dsrahul | last post by:
Dear Friends, I have two similar .dbf files(FOxPro 3.0) 1st one is filled "Trans.dbf" the next is a blank similar "current.dbf" I have two DBGRIDS in the form. I can see the contents of the Trans.dbf in the text boxes & on the DBGRID1 control. What I need is ,If I click on a particular record on DBGRID1 it should get selected & must be transferred to DBGRID2 so that I can update the blank "Current.dbf" with the selected record from...
0
1156
by: Vincent | last post by:
I am trying to familiarize myself with a new ActiveX control. If I place the control on the form and then reference it via code, the Intellisense does not work. However, if I explicitly declare the control in code, then the Intellisense works. The name of the control on the form is dbGrid1. Why can't I do something like the following? Dim dbGrid1Other as AnotherActiveXControl set dbGrid1Other = dbGrid1
8
1601
by: Gemmalouise1988 | last post by:
i have created a program that when a user types data , it will search for it, when the user searches for it, i want to make it so the user can add the item and remove the item if they wanted to. my coding so far is Private Sub cmdSearch_Click() If opt1 Then Data1.RecordSource = "SELECT * FROM WHERE ='" & CStr(txtSearch.Text) & "'" Data1.Refresh End If
0
8485
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8930
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8605
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8677
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4417
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2819
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2062
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.