C# code
Anonymous
assembly_x86
12/14/2021 8:14 PM
528 B
26
Indexable
public void selectOrsearch()
{
dt.Clear();
cmd = new SqlCommand("selectOrsearch_material", cn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@searchtxt", SqlDbType.VarChar).Value = searchtxt.Text;
da = new SqlDataAdapter(cmd);
da.Fill(dt);
this.metroGrid1.DataSource = dt;
}Editor is loading...