Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Add data to Combo box of True DBGrid

Posted on 1998-05-29
2
Medium Priority
?
1,535 Views
Last Modified: 2012-05-04
How can I add the data to the Combo box of True DBGrid?
0
Comment
Question by:yyjulie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

719 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