|
-
May 21st, 2003, 08:51 AM
#1
Thread Starter
Hyperactive Member
Datagrid help needed
How do i populate a datagrid using a MS Access database table?
i have established a connection to the database and have a recordset made........then what do i do to have the data shown in the datagrid cells?
-
May 21st, 2003, 09:26 AM
#2
Sleep mode
After initializing your connection obj and filling your dataset , do this .
VB Code:
DataGrid1.DataSource = ds.Tables(0)
Last edited by Pirate; May 21st, 2003 at 09:30 AM.
-
May 21st, 2003, 09:29 AM
#3
Sleep mode
Originally posted by vector9
How do i populate a datagrid using a MS Access database table?
i have established a connection to the database and have a recordset made........then what do i do to have the data shown in the datagrid cells?
Wait , there is no recordset obj in ADO.NET . Are you working with the old database in VB6 .
-
May 21st, 2003, 03:03 PM
#4
Thread Starter
Hyperactive Member
sorry but i dont really know what exactly to say.......but
i have objRS as new ADODB.Recordset
-
May 21st, 2003, 03:11 PM
#5
Sleep mode
Originally posted by vector9
sorry but i dont really know what exactly to say.......but
i have objRS as new ADODB.Recordset
That's what I thought . Hmm , why don't you try ADO.NET , easier , faster , lost of nice features ..etc . ??
-
May 21st, 2003, 03:16 PM
#6
Thread Starter
Hyperactive Member
could you provide me with a link of where i can get this.... it is just a download right?
-
May 21st, 2003, 03:20 PM
#7
Sleep mode
Originally posted by vector9
could you provide me with a link of where i can get this.... it is just a download right?
a silly question : are you using VB.NET ?
-
May 21st, 2003, 03:21 PM
#8
Thread Starter
Hyperactive Member
of course.
the reference i add is that of Microsoft ActiveX Data Object Library 2.7
-
May 21st, 2003, 03:28 PM
#9
Sleep mode
-
May 21st, 2003, 03:32 PM
#10
Thread Starter
Hyperactive Member
so i take it since i have vs.net it came with ado . net?
-
May 21st, 2003, 03:35 PM
#11
Sleep mode
Originally posted by vector9
so i take it since i have vs.net it came with ado . net?
Exactly , read more about it to make use of the great features it offers .
-
May 21st, 2003, 03:36 PM
#12
Thread Starter
Hyperactive Member
-
May 21st, 2003, 03:39 PM
#13
Sleep mode
-
May 21st, 2003, 04:19 PM
#14
Thread Starter
Hyperactive Member
since i cannot really grasp ado.net really quick.......is there any way using ADO 2.7 like i have been and populate a datagrid with the contents of a table?
-
May 21st, 2003, 04:26 PM
#15
Lively Member
I recommend ado.net from novice to pro. For anyone completely new to datasets. My favorite of my 4 ado.net books
-
May 21st, 2003, 04:29 PM
#16
Thread Starter
Hyperactive Member
sorry but i dont have time to go get a book............ know of any really good tuturials? that actually walk you through the code.
-
May 21st, 2003, 04:56 PM
#17
Sleep mode
-
May 25th, 2003, 08:32 PM
#18
New Member
there is a really good ado.net site here:
Click here
-
May 25th, 2003, 09:00 PM
#19
Frenzied Member
Do not click on the link that Booya05 provided. It is a Javascript popup page.
-
May 26th, 2003, 08:22 AM
#20
Fanatic Member
i got a few examples of using ado.net on my website. Take a look. http://www.vb-tech.com
-
Oct 20th, 2003, 08:14 PM
#21
New Member
-
Oct 20th, 2003, 08:24 PM
#22
New Member
Don't cry
Don't raise your eye
It's only teenage wasteland
Sally take my hand
And travel south crossland
Put out the fire
And don't look past my shoulder
The Exodus is here
The happy ones are near
Let's get together
Before we get much older
-
Oct 20th, 2003, 08:26 PM
#23
New Member
No one knows what it's like
To be the bad man
To be the sad man
Behind blue eyes
No one knows what it's like
To be hated
To be fated
To telling only lies
But my dreams
They aren't as empty
As my conscience seems to be
I have hours, only lonely
My love is vengeance
That's never free
No one knows what it's like
To feel these feelings
Like I do
And I blame you
No one bites back as hard
On their anger
None of my pain and woe
Can show through
But my dreams
They aren't as empty
As my conscience seems to be
I have hours, only lonely
My love is vengeance
That's never free
When my fist clenches, crack it open
Before I use it and lose my cool
When I smile, tell me some bad news
Before I laugh and act like a fool
If I swallow anything evil
Put your finger down my throat
If I shiver, please give me a blanket
Keep me warm, let me wear your coat
No one knows what it's like
To be the bad man
To be the sad man
Behind blue eyes
-
Oct 20th, 2003, 09:51 PM
#24
Frenzied Member
Originally posted by Booya05
No one knows what it's like
To be the bad man
To be the sad man
Behind blue eyes
...
I love that 'Who's Next' was one of the early disks i bought years ago.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|