SqlCeConnection SqlCnx = new SqlCeConnection(GlobalVar.strConnexion); try { SqlCeCommand myCommand = new SqlCeCommand("getAuction", SqlCnx); myCommand.CommandType = CommandType.StoredProcedure; SqlCeDataAdapter dataAdapterInfoAuctList = new SqlCeDataAdapter(myCommand); dataAdapterInfoAuctList.Fill(dataSetInfosalvage, "auct"); dataTableAuct = dataSetInfosalvage.Tables["auct"]; dtgridAuction.DataSource = dataTableAuct; } catch (SqlCeException Ex) { MessageBox.Show("Error 0002 :\n" + Ex.Message, "SQL Error", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1); } finally { SqlCnx.Dispose(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)