Solved

How to Put Data in Data Bound Grid at run time

Posted on 2002-06-21
6
185 Views
Last Modified: 2010-05-03
Hello
      I am getting a problem to put data in grid(FlexGrid,DBGRID)at run time .
       Please help me.
                        Amitesh
0
Comment
Question by:ami12
[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
6 Comments
 

Author Comment

by:ami12
ID: 7098106
Thanks
0
 
LVL 3

Expert Comment

by:Bahnass
ID: 7098165
FOR FLEXGRID
USE TEXTMATRIX


FLX.TEXTMATRIX(R,C)= VALUEUNEED

DBGRID  MORE TRICKY

G.ROW=...   G.COL=...    G.TEXT =.
0
 
LVL 2

Expert Comment

by:priya_pbk
ID: 7098166
Try this for the start:

Open a new project and add a Adodc and Datagrid control on to the form and write this code in the form load event

Private Sub Form_Load()
'for datagrid control
Set DataGrid1.DataSource = Adodc1

'for mshflexgrid control
Set MSHFlexGrid1.DataSource = Adodc1

End Sub

You can do lot of things in datagrid control, ie add, delete or updata records but not so with mshflexgrid which is uneditable

-priya
0
Independent Software Vendors: 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!

 
LVL 3

Accepted Solution

by:
Bahnass earned 20 total points
ID: 7098314
On the other hand
 flexgrid is colored DBGrid is not
flexgrid proparties can be handled per CELL not only per col
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7923716
Hi ami12,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept Bahnass's comment(s) as an answer.

ami12, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7968441
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

729 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