Click here to Skip to main content
15,892,072 members
Home / Discussions / C#
   

C#

 
GeneralRe: Find multiple instance using Mutex Pin
CodingLover20-Feb-08 17:44
CodingLover20-Feb-08 17:44 
Questioncreating graphs in C# .net Pin
Bhaskar Ravindranath18-Feb-08 22:10
Bhaskar Ravindranath18-Feb-08 22:10 
GeneralRe: creating graphs in C# .net Pin
Christian Graus18-Feb-08 22:13
protectorChristian Graus18-Feb-08 22:13 
GeneralMHT File Problem. Pin
hdv21218-Feb-08 21:53
hdv21218-Feb-08 21:53 
GeneralRe: MHT File Problem. Pin
Pete O'Hanlon18-Feb-08 22:23
mvePete O'Hanlon18-Feb-08 22:23 
GeneralRe: MHT File Problem. [modified] Pin
hdv21218-Feb-08 22:55
hdv21218-Feb-08 22:55 
GeneralRe: MHT File Problem. Pin
Pete O'Hanlon18-Feb-08 23:19
mvePete O'Hanlon18-Feb-08 23:19 
QuestionUpdate mysql table from datagridview Pin
baranils18-Feb-08 21:07
baranils18-Feb-08 21:07 
Hello

I found some good example to get a connection to a mysql db using mysql dataconnector

It is also easy to fill a dataset and a datagridview

BUT I found no tutorial nor any information explaining the basic concept to upgrade tables from the datagridview

Any basic information about that will be WELCOME

Below the basics to get the connection and fill a datagridview

MySqlConnection conn = new MySql.Data.MySqlClient.MySqlConnection();
string MyConString = "server=localhost;port=3306;uid=root;database=recutex;";
string selectcmd;

conn.ConnectionString = MyConString;
conn.Open();

MySqlDataAdapter adaTour = new MySqlDataAdapter();
selectcmd = "SELECT distinct dag,chauffeurID FROM `tours`";
adaTour.SelectCommand = new MySqlCommand(selectcmd, conn);

DataSet dsTour = new DataSet();
adaTour.Fill(dsTour);
dgv_Tour.DataSource = dsTour.Tables[0];
GeneralRe: Update mysql table from datagridview Pin
Mircea Puiu18-Feb-08 21:40
Mircea Puiu18-Feb-08 21:40 
GeneralRe: Update mysql table from datagridview Pin
baranils18-Feb-08 22:27
baranils18-Feb-08 22:27 
GeneralRe: Update mysql table from datagridview Pin
Mircea Puiu18-Feb-08 23:00
Mircea Puiu18-Feb-08 23:00 
GeneralRe: Update mysql table from datagridview Pin
baranils18-Feb-08 23:33
baranils18-Feb-08 23:33 
GeneralRe: Update mysql table from datagridview Pin
Mircea Puiu18-Feb-08 23:50
Mircea Puiu18-Feb-08 23:50 
GeneralRe: Update mysql table from datagridview Pin
baranils19-Feb-08 2:47
baranils19-Feb-08 2:47 
GeneralRe: Update mysql table from datagridview Pin
Mircea Puiu19-Feb-08 3:29
Mircea Puiu19-Feb-08 3:29 
GeneralRe: Update mysql table from datagridview Pin
baranils19-Feb-08 4:10
baranils19-Feb-08 4:10 
GeneralRe: Update mysql table from datagridview Pin
baranils19-Feb-08 21:34
baranils19-Feb-08 21:34 
GeneralHelp me with pressing keys Pin
David553418-Feb-08 20:54
David553418-Feb-08 20:54 
GeneralRe: Help me with pressing keys Pin
phannon8618-Feb-08 22:02
professionalphannon8618-Feb-08 22:02 
GeneralOpening Documents Pin
mgr_2k718-Feb-08 20:06
mgr_2k718-Feb-08 20:06 
QuestionAsynchronous method call or new Thread object? Pin
SimonH7618-Feb-08 19:59
SimonH7618-Feb-08 19:59 
GeneralRe: Asynchronous method call or new Thread object? Pin
Mircea Puiu18-Feb-08 21:31
Mircea Puiu18-Feb-08 21:31 
GeneralRe: Asynchronous method call or new Thread object? Pin
SimonH7619-Feb-08 3:32
SimonH7619-Feb-08 3:32 
GeneralRe: Asynchronous method call or new Thread object? Pin
Mircea Puiu19-Feb-08 3:42
Mircea Puiu19-Feb-08 3:42 
QuestionBoxing and UnBoxing in C#? Pin
ReenaSharma18-Feb-08 19:38
ReenaSharma18-Feb-08 19:38 

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.