Solved

Add data to Combo box of True DBGrid

Posted on 1998-05-29
2
1,466 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

813 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

14 Experts available now in Live!

Get 1:1 Help Now