G
Guest
Does anyone remember this:
Set datapath to "c:\somewhere"
dNetUse "SomeTable"
do some db work
I asked the question a couple of days ago about how to attach a recordset or
some form of data to a datagrid. I was using DAO. The lack of responses
seemed to indicate that the question was out of the range of an answer. So I
started looking around to find out what does this datagrid want that the
datagrid in VB5 did not need. It looked like I need to make the leap from
DAO to ADO.NET in order to get a datagrid to work.
So....after much studying I decided to just use the dataform wizard to build
me a connection and populate a datagrid. Then I assumed (bad assumption) I
could just put the parameters into variables and use this dataform for any
table to do a quick view/edit. There are OVER 50 LINES OF CODE in the data
form just to hookup and tell the grid what to show, and it appears that I
cannot make it a generic form.
Tell me is ADO.NET 50 times better than xBase or 20 times better than DAO or
are we being corralled into an increasingly complex program model just for
the sake of "technology marching on".
This is ridiculous!!!!!!!!!!!!!!!!!!!!
And I still don't know how to hook up a user selectable table to a datagrid
using ADO.NET
I don't care if it's a disconnected paradigm. All my apps are small, less
than 10 users. I don't write code for General Motors or CocaCola.
Can anyone point me to a code snipit to do this in ADO.NET in less than 10
lines of code?
Totally Frustrated
Set datapath to "c:\somewhere"
dNetUse "SomeTable"
do some db work
I asked the question a couple of days ago about how to attach a recordset or
some form of data to a datagrid. I was using DAO. The lack of responses
seemed to indicate that the question was out of the range of an answer. So I
started looking around to find out what does this datagrid want that the
datagrid in VB5 did not need. It looked like I need to make the leap from
DAO to ADO.NET in order to get a datagrid to work.
So....after much studying I decided to just use the dataform wizard to build
me a connection and populate a datagrid. Then I assumed (bad assumption) I
could just put the parameters into variables and use this dataform for any
table to do a quick view/edit. There are OVER 50 LINES OF CODE in the data
form just to hookup and tell the grid what to show, and it appears that I
cannot make it a generic form.
Tell me is ADO.NET 50 times better than xBase or 20 times better than DAO or
are we being corralled into an increasingly complex program model just for
the sake of "technology marching on".
This is ridiculous!!!!!!!!!!!!!!!!!!!!
And I still don't know how to hook up a user selectable table to a datagrid
using ADO.NET
I don't care if it's a disconnected paradigm. All my apps are small, less
than 10 users. I don't write code for General Motors or CocaCola.
Can anyone point me to a code snipit to do this in ADO.NET in less than 10
lines of code?
Totally Frustrated