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
I am getting a problem to put data in grid(FlexGrid,DBGRID)at run time .
Please help me.
Amitesh
FOR FLEXGRID
USE TEXTMATRIX
FLX.TEXTMATRIX(R,C)= VALUEUNEED
DBGRID MORE TRICKY
G.ROW=... G.COL=... G.TEXT =.
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
SpideyMod
Community Support Moderator @Experts Exchange
ASKER