Torna al Thread

private void frmRicercaCliente_Load(object sender, EventArgs e) { try { Global.griglia = false; strSQL = "SELECT CF_CodiceCF AS Codice, CF_RagioneSociale AS [Ragione Sociale], CF_Indirizzo + ' (' + CF_Località + ')' AS Indirizzo " + "FROM T_Clienti"; adapter = new SqlCeDataAdapter(strSQL, Global.connessione); comando = new SqlCeCommandBuilder(adapter); adapter.Fill(Rs_SqlRicerca); bs = new BindingSource(); bs.DataSource = Rs_SqlRicerca; this.impostaGriglia();// DOVE EFFETTUO UN dvgRigerca.DataSource = bs; } catch (SqlCeException ex) { MessageBox.Show(ex.Message, "Errori Database", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1); Close(); } }
Copyright © dotNetHell.it 2002-2024
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5