No one at all can help me with this, im dying here and really need some help, very important
I have a data projct doing and have a couple queries, I simply need to know how i get the datagrid to show the results from my query can someone tell me how i do that.
I looked over my post noticed i had flexgrid, please people i need help with this i just need to know how to populate my datagrid with the results from my sql select query
please and thank you
Last edited by Notorios; March 22, 2005 at 12:57 PM.
Notorios
That Which Is Not Defined Is Infinitely Great
Google The Search Engine Of The Gods
No one at all can help me with this, im dying here and really need some help, very important
Notorios
That Which Is Not Defined Is Infinitely Great
Google The Search Engine Of The Gods
What connector are you using to connect to your data, DataEnvironment? If so, make sure the DE has a command set up for the SQL query. Then click the datagrid to bring up it's properties. Double-click DATASOURCE to set the source as your DE, then select from the list in DATAMEMBER to choose the appropriate command (query) to display in the grid.
.
SHANTI II - Ubuntu 13.04 64bit Desktop
HP Pav G60-236US 3GB RAM Laptop, Ubuntu 13.04 64bit and Win7 Home
"So Daddy, how come you telling me stealing not right when YOU copying DVDs? How come? How Come?"
Changes to posting in Classifieds
he's right.... do as stated above
//Declare recordset to hold Query result
Dim myrec as new ADODB.RECORDSET
//Declare an SQL connection
Dim Mycon as new ADODB.connection
Dim constr as String
constr="Provider=Microsoft.Jet.OLEDB.4.0; " & _
"Data Source=C:madhead.mdb""
mycon.connectionstring=constr
myrec.open "select * from customers",mycon,1,2
Lets say your data grid name dglist.
dglist.datasource=myrec
And the dtagrid will show the query result
I believe he got through. We spent about half an hour on MSN trying to figure out why the DE command would not populate. His query involved using a parameter. A day later, he told me he got through.
.
SHANTI II - Ubuntu 13.04 64bit Desktop
HP Pav G60-236US 3GB RAM Laptop, Ubuntu 13.04 64bit and Win7 Home
"So Daddy, how come you telling me stealing not right when YOU copying DVDs? How come? How Come?"
Changes to posting in Classifieds
thanx to all you peeps who tried to help me, i got through like ramesh said, bless
Notorios
That Which Is Not Defined Is Infinitely Great
Google The Search Engine Of The Gods