Hello everyone, can anyone help me??.
I have a datagrid, in which i display the result from a query that i do from a remote database. The result is not too long, but it gets very slow to get the datagrid filled.
Here is part of my code.
String ConnectionString = "Driver={MySQL ODBC 3.51 Driver};Server=*********;Port=****;Database=****;User=*****;Password=*******;Option=3;";
DataSet MySQLDataSet = new DataSet();
query = "select * from cat_adquisiciones;";
OdbcDataAdapter MySQLDataAdapter = new OdbcDataAdapter("" + busqueda, ConnectionString);
MySQLDataAdapter.Fill(MySQLDataSet, "consul1");
this.tabla.DataSource = MySQLDataSet.Tables["consul1"].DefaultView;
I have a datagrid, in which i display the result from a query that i do from a remote database. The result is not too long, but it gets very slow to get the datagrid filled.
Here is part of my code.
String ConnectionString = "Driver={MySQL ODBC 3.51 Driver};Server=*********;Port=****;Database=****;User=*****;Password=*******;Option=3;";
DataSet MySQLDataSet = new DataSet();
query = "select * from cat_adquisiciones;";
OdbcDataAdapter MySQLDataAdapter = new OdbcDataAdapter("" + busqueda, ConnectionString);
MySQLDataAdapter.Fill(MySQLDataSet, "consul1");
this.tabla.DataSource = MySQLDataSet.Tables["consul1"].DefaultView;