Please, help me. I don't know how to ....

Please, help me. I don't know how to ....

Postby tatxvn » Fri 11 Mar 2005 16:00

Hi all,
I'm making an application using C# to connect MySQL. I connected successfull to database, but I don't know how to view it on dataGrid. Dose anyone know ????. Please help me if you can.
Thanks.
tatxvn
 

Postby Serious » Mon 14 Mar 2005 16:21

The simplest way to view table in DataGrid is as follows:
Code: Select all
MySqlDataTable dataTable = new MySqlDataTable("select * from dept", "host=localhost;database=test;user id=root;");
dataGrid1.DataSource = dataTable;
dataTable.Active = true;
For more examples please refer to MySqlDirect .NET samlples.
Serious
 


Return to dotConnect for MySQL