Solved

Using DBGrid in unbound mode

Posted on 1998-10-06
1
560 Views
Last Modified: 2013-12-26
VB5/DBGrid control

I need some assistance with using the VB5 DBGrid in unbound mode. I have obtained the controls supplemented documentation from the Apex website but I'm still can't figure out how to allow the user to add rows of data to the grid and save the cell values to an array or some other data structure.

I have written a event handler for the UnboundReadData event that works when I provide a array of prepared data. But it fails when I add new rows or if I start with a blank array and try to add to the array by responding to the UnboundAddData event the UnboundReadData handler doesn't show the data in the grid.
I'd like to see a valid structure of an UnboundAddData event handler and a UnboundReadData event handler.
0
Comment
Question by:armg
1 Comment
 
LVL 5

Accepted Solution

by:
chewhoung earned 250 total points
ID: 1487382
Have you tried the sample come with VB5?

In :
samples\misc\unbndgrd
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

809 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