salut ;o) !!!
Moi aussi j ai tourne en rond pdt kel ke temps sur ce probleme !!!! Tu peux utiliser un datagrid pour afficher les donnes de ton dataset
Voici comment j ai codé ma fonction :
**************************************************************************************************
SqlCeConnection conn=null;
SqlCeCommand sqlCom =null;
DataSet ds = new DataSet("PV");
try
{
conn = new SqlCeConnection(@"Data Source = \My Documents\Tatable.sdf; Password = 'Mdp'");
conn.Open();
sqlCom =new SqlCeCommand();
string commande =@"SELECT * FROM MaTable";
sqlCom.CommandText=commande;
sqlCom.CommandType=CommandType.Text;
sqlCom.Connection=conn;
SqlCeDataAdapter sqlce = new SqlCeDataAdapter();
sqlce.SelectCommand = sqlCom;
sqlce.Fill(ds,"Tatable");
DataView data= new DataView(ds.Tables[0]);
//source des données du datagrid
dataGrid1.DataSource=data;
// Affiche la datagrid
dataGrid1.Show();
}
catch(SqlCeException ex)
{
MessageBox.Show(ex.Message,"Ton Message",MessageBoxButtons.OK,MessageBoxIcon.Asterisk,MessageBoxDefaultButton.Button2);
}
finally
{
//ferme la connexion
conn.Close();
}
**************************************************************************************************
Voila mon code. Si tu veux plus de precision n'hesite pas a me contacter.
@ +++
