***Coding in C#
This works:
NpgsqlConnection conn = new NpgsqlConnection(conx.getConexion());
conn.Open();
NpgsqlDataAdapter da = new NpgsqlDataAdapter("Select \"NombreMarca\" From \"Marca\" Where \"NombreMarca\" ='"+cbMarca.Text.ToLower()+"'", conn);
System.Data.DataTable dt = new System.Data.DataTable();
da.Fill(dt);
conn.Close();
//cbMarca is a ComboBox
Now, this doesnt:
NpgsqlConnection conn = new NpgsqlConnection(conx.getConexion());
conn.Open();
NpgsqlDataAdapter da = new NpgsqlDataAdapter("Select \"NombreMarca\" From \"Marca\" Where \"NombreMarca\" ='"+cbMarca.Text.ToUpper()+"'", conn);
System.Data.DataTable dt = new System.Data.DataTable();
da.Fill(dt);
conn.Close();
And i need it in upper!
Do you want to compare all values with the string supplied or do you want to filter out all upper cased strings?
For a just comparing the values against each other try changing the column to upper case as well: