TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ma ouml
NA
436
87.9k
How to solve the connection problem in the datagridview c#
Jun 20 2017 6:57 PM
Hi friends
I find this error
in this code but I do not know is what I will add con.open () and con .close () to the code
Program.cmd.CommandText = "select utilisateur.User_name,site.Libelle_site,profil.Libelle_profil from utilisateur,site,profil,autorisation where utilisateur.Id_user=autorisation.Id_user and site.Id_site=autorisation.Id_site and profil.Id_profil=autorisation.Id_profil";
Program.dr = Program.cmd.ExecuteReader();
DataTable dt = new DataTable();
dt.Load(Program.dr);
dataGridView1.DataSource = dt;
dataGridView1.Refresh();
Reply
Answers (
8
)
How to select a line by retrieving a datagridview column
Visual Studio 2010 Ultimate Data Connections