Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
8
Answers
Data reader with gridview ?
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
SUNIL GUTTA
11y
5.9k
1
Reply
Hi
i tried as below its not loading data into grid view when i tried using dataset it worked perfectly
OleDbCommand cmd = new OleDbCommand("select * from customer", con);
con.Open();
MessageBox.Show(con.State.ToString());
OleDbDataReader dr = cmd.ExecuteReader();
con.Close();
MessageBox.Show(con.State.ToString());
dataGridView1.DataSource = dr;
Cheers & thanks everyone
Post
Reset
Cancel
Answers (
8
)
Next Recommended Forum
How to find connection status ? in DATASET
Chart Background Image Problem