Ciao a tutti, sto sviluppando un'applicazione in c# e volevo sapere se qualcuno ha a portata di mano codici o dispense on-line per creare un pop-up menu su un data grid...
codice:
private void loadDB()
{
try
{
// Create a SqlCommand to retrieve Suppliers data.
SqlCommand sc = new SqlCommand();
sc.Connection = DbConn.sqlConn;
sc.CommandType = CommandType.Text;
sc.CommandText = " qui c'è la mia select sql",
// Set the SqlDataAdapter's SelectCommand.
adapter.SelectCommand = sc;
// Populate a new data table and bind it to the BindingSource.
DataTable table = new DataTable();
table.Locale = System.Globalization.CultureInfo.InvariantCulture;
adapter.Fill(table);
bindingSource1.DataSource = table;
DataGridViewTextBoxColumn idCountry = new DataGridViewTextBoxColumn();
idCountry.HeaderText = "Country ISO";
idCountry.DataPropertyName = "id_country_iso";
idCountry.Name = "id_country_iso";
dataGridView1.Columns.Add(idCountry);
Io dovrei associare a idCountry(che è una text box) un pop-up.
Grazie