Click here to Skip to main content
15,883,938 members
Home / Discussions / C#
   

C#

 
GeneralRe: Weak Event seems to fail in test method Pin
Super Lloyd5-Mar-16 17:12
Super Lloyd5-Mar-16 17:12 
GeneralRe: Weak Event seems to fail in test method Pin
Kenneth Haugland5-Mar-16 17:22
mvaKenneth Haugland5-Mar-16 17:22 
GeneralRe: Weak Event seems to fail in test method Pin
Super Lloyd5-Mar-16 17:28
Super Lloyd5-Mar-16 17:28 
GeneralRe: Weak Event seems to fail in test method Pin
Kenneth Haugland5-Mar-16 17:44
mvaKenneth Haugland5-Mar-16 17:44 
GeneralRe: Weak Event seems to fail in test method Pin
Super Lloyd5-Mar-16 18:11
Super Lloyd5-Mar-16 18:11 
QuestionHow to connect MySQL to dataGridView Pin
Member 122785423-Mar-16 19:48
Member 122785423-Mar-16 19:48 
AnswerRe: How to connect MySQL to dataGridView Pin
Mycroft Holmes3-Mar-16 20:34
professionalMycroft Holmes3-Mar-16 20:34 
AnswerRe: How to connect MySQL to dataGridView Pin
V.3-Mar-16 22:53
professionalV.3-Mar-16 22:53 
There are many things wrong with this question:
  1. The question implies you have no experience at all in software development. One of the most important rules is "seperation of concerns". Basically you divide a problem in smaller problems and solve them one by one. In this case, connecting database records directly to a grid is just not done.
  2. The question implies you have not done any research on the subject, which also implies you're taking the easy road.
  3. You have not even read this forum's guidelines[^]
To answer your question and hoping you will first start reading a book or getting some classes before diving in database development:

1.
You need to create some sort of DAL (DataAccess Layer) that will connect to the database and is able to perform several actions (CRUD eg, look that up in google). In your case getting data back into the application. One of my articles explains this and has sample code.
Building a Framework - Part I (DAL)[^]

2.
Once you have the data you should not connect it to the grid directly, rather create underlying objects that are useful. These objects can do little (just copy data to the object) or a lot (combining data, checking, reformatting, ...). That is done in the BLL (Business Logic Layer).

3.
Finally, when you have done that and you have a desirable list of objects you can bind that to the grid in the GUI (Graphical User Interface).

This is about the most basic (3-tier) model you can do, there are many more additional models/layers, design patterns you can add/do.

Seriously, if your intent is to go for a professional career, start out with the "hello world" program and build up from there.

hope this helps.
V.
(MQOTD rules and previous solutions)

AnswerRe: How to connect MySQL to dataGridView Pin
Frank Kerrigan4-Mar-16 3:50
Frank Kerrigan4-Mar-16 3:50 
Questionscalar data visualization Pin
Member 123014432-Mar-16 23:12
Member 123014432-Mar-16 23:12 
AnswerRe: scalar data visualization Pin
OriginalGriff2-Mar-16 23:24
mveOriginalGriff2-Mar-16 23:24 
GeneralRe: scalar data visualization Pin
Member 123014433-Mar-16 17:49
Member 123014433-Mar-16 17:49 
AnswerRe: scalar data visualization Pin
dan!sh 3-Mar-16 18:01
professional dan!sh 3-Mar-16 18:01 
GeneralRe: scalar data visualization Pin
Pete O'Hanlon3-Mar-16 23:41
mvePete O'Hanlon3-Mar-16 23:41 
GeneralRe: scalar data visualization Pin
Sascha Lefèvre3-Mar-16 0:55
professionalSascha Lefèvre3-Mar-16 0:55 
GeneralRe: scalar data visualization Pin
Mycroft Holmes3-Mar-16 19:22
professionalMycroft Holmes3-Mar-16 19:22 
GeneralRe: scalar data visualization Pin
Sascha Lefèvre3-Mar-16 23:23
professionalSascha Lefèvre3-Mar-16 23:23 
GeneralRe: scalar data visualization Pin
OriginalGriff3-Mar-16 23:30
mveOriginalGriff3-Mar-16 23:30 
QuestionC++ DLL within C# application Pin
my Nick2-Mar-16 10:03
my Nick2-Mar-16 10:03 
AnswerRe: C++ DLL within C# application Pin
Eddy Vluggen2-Mar-16 10:37
professionalEddy Vluggen2-Mar-16 10:37 
GeneralRe: C++ DLL within C# application Pin
my Nick2-Mar-16 11:01
my Nick2-Mar-16 11:01 
GeneralRe: C++ DLL within C# application Pin
John Torjo2-Mar-16 11:37
professionalJohn Torjo2-Mar-16 11:37 
GeneralRe: C++ DLL within C# application Pin
Mycroft Holmes2-Mar-16 11:57
professionalMycroft Holmes2-Mar-16 11:57 
AnswerRe: C++ DLL within C# application Pin
my Nick2-Mar-16 22:28
my Nick2-Mar-16 22:28 
GeneralRe: C++ DLL within C# application Pin
Richard MacCutchan2-Mar-16 22:48
mveRichard MacCutchan2-Mar-16 22:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.