Solved

Using DBGrid in unbound mode

Posted on 1998-10-06
1
537 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
Comment Utility
Have you tried the sample come with VB5?

In :
samples\misc\unbndgrd
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
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…

771 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

15 Experts available now in Live!

Get 1:1 Help Now