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

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply

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

Post by 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.


Post by 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.

Post Reply