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
Solved

How to Put Data in Data Bound Grid at run time

Posted on 2002-06-21
6
182 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
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

856 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