Estos son los parametros para rellenar desde c# un dataGridView1, con una select cualquiera.

 

string selecthour = «select * from table_temporal «;
MySqlDataAdapter dahour = new MySqlDataAdapter(selecthour, conexion);
DataSet dsthour = new DataSet();
dahour.Fill(dsthour, «tmphour»);
dataGridView1.DataSource = dsthour;
dataGridView1.DataMember = «tmphour»;

Por admin

Deja una respuesta

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
100% Free SEO Tools - Tool Kits PRO