string p_code = P1.Text; string p_design = P2.Text; SqlDataAdapter pgrid = new SqlDataAdapter("Select * From Product Where Item_Code = @p_code OR Design = @p_design", connection_v); pgrid.SelectCommand.Parameters.AddWithValue("@p_code", @p_code); pgrid.SelectCommand.Parameters.AddWithValue("@p_design", @p_design); DataTable pt = new DataTable(); pgrid.Fill(pt); dgv_p.DataSource = pt;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)