Solved

Add data to Combo box of True DBGrid

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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
Course of the Month10 days, 17 hours left to enroll

628 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