Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Using DBGrid in unbound mode

Posted on 1998-10-06
1
Medium Priority
?
591 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
[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
1 Comment
 
LVL 5

Accepted Solution

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

In :
samples\misc\unbndgrd
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
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…
Suggested Courses

670 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