Solved

Add data to Combo box of True DBGrid

Posted on 1998-05-29
2
1,434 Views
Last Modified: 2012-05-04
How can I add the data to the Combo box of True DBGrid?
0
Comment
Question by:yyjulie
2 Comments
 
LVL 18

Accepted Solution

by:
deighton earned 0 total points
ID: 1461998
1) Go to your True DBGrid properties window.
2) Click on the (Custom) Tag.
3) Check AllowAddNew on the General Control properies.

You can then add to the data bound grid and the changes will be saved in your database.

Hope this is what you need - I was not sure!


0
 
LVL 6

Expert Comment

by:anthonyc
ID: 1461999
You can also add it via code, using ValueItems

dim viItems as valueitems
dim vItem   as valueitem

set viItems = tdbgrid1.columns(0).valueitems
set vItem = new valueitem
'set properties for vItem, I forget them off the top of my head
viItems.add viItem

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now