Link to home
Start Free TrialLog in
Avatar of ami12
ami12

asked on

How to Put Data in Data Bound Grid at run time

Hello
      I am getting a problem to put data in grid(FlexGrid,DBGRID)at run time .
       Please help me.
                        Amitesh
Avatar of ami12
ami12

ASKER

Thanks
FOR FLEXGRID
USE TEXTMATRIX


FLX.TEXTMATRIX(R,C)= VALUEUNEED

DBGRID  MORE TRICKY

G.ROW=...   G.COL=...    G.TEXT =.
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
ASKER CERTIFIED SOLUTION
Avatar of Bahnass
Bahnass
Flag of Egypt image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DanRollins
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
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange