Solved

Add data to Combo box of True DBGrid

Posted on 1998-05-29
2
1,489 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

756 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