Click here to Skip to main content
15,925,661 members
Home / Discussions / C#
   

C#

 
GeneralRe: a performance problem Pin
Nagy Vilmos30-Jul-09 4:32
professionalNagy Vilmos30-Jul-09 4:32 
GeneralRe: a performance problem Pin
reilak30-Jul-09 4:37
reilak30-Jul-09 4:37 
AnswerRe: a performance problem Pin
PIEBALDconsult30-Jul-09 4:26
mvePIEBALDconsult30-Jul-09 4:26 
AnswerRe: a performance problem (UPDATE) Pin
reilak30-Jul-09 4:33
reilak30-Jul-09 4:33 
GeneralRe: a performance problem (UPDATE) Pin
Luc Pattyn30-Jul-09 13:50
sitebuilderLuc Pattyn30-Jul-09 13:50 
AnswerRe: a performance problem, (check this out) Pin
reilak1-Aug-09 22:16
reilak1-Aug-09 22:16 
QuestionConverting HTML File to Excel File and XML File using c# Code Pin
shavil30-Jul-09 2:35
shavil30-Jul-09 2:35 
AnswerRe: Converting HTML File to Excel File and XML File using c# Code Pin
Mike Ellison30-Jul-09 2:57
Mike Ellison30-Jul-09 2:57 
QuestionDouble click custom controls Pin
Jon Henry30-Jul-09 2:27
Jon Henry30-Jul-09 2:27 
AnswerRe: Double click custom controls Pin
Mike Ellison30-Jul-09 2:36
Mike Ellison30-Jul-09 2:36 
GeneralRe: Double click custom controls Pin
Jon Henry30-Jul-09 12:20
Jon Henry30-Jul-09 12:20 
AnswerRe: Double click custom controls Pin
Jon Henry2-Aug-09 1:44
Jon Henry2-Aug-09 1:44 
QuestionConnecting to MySQL from PC Pin
MarkB77730-Jul-09 2:08
MarkB77730-Jul-09 2:08 
AnswerRe: Connecting to MySQL from PC Pin
stancrm30-Jul-09 2:25
stancrm30-Jul-09 2:25 
AnswerRe: Connecting to MySQL from PC Pin
spalanivel30-Jul-09 2:34
spalanivel30-Jul-09 2:34 
Hi,
1) First you need to add reference MySql.Data to your application.

2) Then //create a new mysqlconnection
MySqlConnection mycon = new MySqlConnection("datasource=localhost;username=root;password=pwd;database=project");

//create a mysql DataAdapter
MySqlDataAdapter myadp = new MySqlDataAdapter("select * from FAB", mycon);

//create a dataset
DataSet myds = new DataSet();

//now fill and bind the DataGrid
myadp.Fill(myds, "empinfo");
dataGridView1.DataSource = myds.Tables["empinfo"].DefaultView;

I have used with windows application. Try this.

Regards,
Subbu
AnswerRe: Connecting to MySQL from PC Pin
Dave Kreskowiak30-Jul-09 6:31
mveDave Kreskowiak30-Jul-09 6:31 
GeneralRe: Connecting to MySQL from PC Pin
EliottA30-Jul-09 7:26
EliottA30-Jul-09 7:26 
GeneralRe: Connecting to MySQL from PC Pin
MarkB77730-Jul-09 15:20
MarkB77730-Jul-09 15:20 
QuestionHow to Read CSV file in Readonly mode and Populate dataset? Pin
Tridip Bhattacharjee30-Jul-09 2:08
professionalTridip Bhattacharjee30-Jul-09 2:08 
AnswerRe: How to Read CSV file in Readonly mode and Populate dataset? Pin
Dave Kreskowiak30-Jul-09 6:29
mveDave Kreskowiak30-Jul-09 6:29 
GeneralRe: How to Read CSV file in Readonly mode and Populate dataset? Pin
Tridip Bhattacharjee30-Jul-09 18:35
professionalTridip Bhattacharjee30-Jul-09 18:35 
GeneralRe: How to Read CSV file in Readonly mode and Populate dataset? Pin
Dave Kreskowiak31-Jul-09 13:16
mveDave Kreskowiak31-Jul-09 13:16 
QuestionException use instead of validation Pin
Raybarg30-Jul-09 1:14
professionalRaybarg30-Jul-09 1:14 
QuestionStatic constructor Pin
erfgerfgerger30-Jul-09 1:07
erfgerfgerger30-Jul-09 1:07 
AnswerRe: Static constructor Pin
Ashfield30-Jul-09 1:29
Ashfield30-Jul-09 1:29 

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.