Hello, i have a question. I have this datagrid that i`m working on. It shows three fields from a table called "empleado". Does anyone knows, how to apply the changes in the datagrid, directly in the database ??
string ConnectionString = "Driver={MySQL ODBC 3.51 Driver};
Server=localhost;Database=Reloj;option=3";
string myquery = "SELECT app, apm, nombre FROM empleado";
dbcDataAdapter MySQLDataAdapter = new OdbcDataAdapter(myquery,ConnectionString);
MySQLDataSet = new DataSet();
MySQLDataSet.AcceptChanges();
MySQLDataAdapter.Fill(MySQLDataSet,"empleado");
mysqlTable.DataSource = MySQLDataSet.Table["empleado"].DefaultView;
string ConnectionString = "Driver={MySQL ODBC 3.51 Driver};
Server=localhost;Database=Reloj;option=3";
string myquery = "SELECT app, apm, nombre FROM empleado";
dbcDataAdapter MySQLDataAdapter = new OdbcDataAdapter(myquery,ConnectionString);
MySQLDataSet = new DataSet();
MySQLDataSet.AcceptChanges();
MySQLDataAdapter.Fill(MySQLDataSet,"empleado");
mysqlTable.DataSource = MySQLDataSet.Table["empleado"].DefaultView;