再问问,最好给点代码。 string sql="select * from a where column like "+textbox.text+"%"; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 是要做成像MSDN索引那样的吗?给TestBox加一个Change事件,然后,在这个事件里面进行数据查询,可以生成一个DataSet这样的话,可以用这个DataSet做为临时表,到时再将这个表写进B表里面不知道有没有说错啊? string str;DataSet ds=null;SqlCommand cmd=null;SqlConnection cn=null;SqlDataAdapter da=null;switch(str){ case 1; str=select * from A where 数字列="1*"; case 0: str=select * from A where 数字列="10*"; cmd.CommandText=str;}private void button_Click(object sender, System.EventArgs e){ TextBox1=Ds.Tables[0].Rows[dataGrid1.CurrentRowIndex][col1].ToString(); TextBox2=Ds.Tables[0].Rows[dataGrid1.CurrentRowIndex][col2].ToString(); TextBox3=Ds.Tables[0].Rows[dataGrid1.CurrentRowIndex][col3]; cmd.CommandText="insert into temp value(textBox1,textBox2,textBox3)";}private void button1_Click(object sender, System.EventArgs e){ for(int i=0;i<ds.Tables[0].Rows;i++) { TextBox1=Ds.Tables[0].Rows[i][col1].ToString(); TextBox2=Ds.Tables[0].Rows[i][col2].ToString(); TextBox3=Ds.Tables[0].Rows[i][col3]; cmd.CommandText="insert into B value(textBox1,textBox2,textBox3)"; }} DataGridView检索窗口。winfrom看进来 菜鸟 构造函数 内的代码问题。 #include file="xx" 以及iframe.. C# C# 如何获的数组下标 动态创建控件的问题 请问高手,VC#可否开发单机应用程序。编译时可否成为绿色软件。 有谁知道如何用模拟窗口显示DirectX的全屏窗口 c# 合并多文档 在C#中如何调用WindowsAPI函数? 在internet网络上进行TCPIP通信,怎样才能达到信息的实时传输。可以交互并且非常迅速的方法和例子 无法用C#创建WebApplication应用程序
给TestBox加一个Change事件,然后,在这个事件里面进行数据查询,可以生成一个DataSet这样的话,可以用这个DataSet做为临时表,到时再将这个表写进B表里面不知道有没有说错啊?
DataSet ds=null;
SqlCommand cmd=null;
SqlConnection cn=null;
SqlDataAdapter da=null;switch(str)
{
case 1;
str=select * from A where 数字列="1*";
case 0:
str=select * from A where 数字列="10*";
cmd.CommandText=str;
}private void button_Click(object sender, System.EventArgs e)
{
TextBox1=Ds.Tables[0].Rows[dataGrid1.CurrentRowIndex][col1].ToString();
TextBox2=Ds.Tables[0].Rows[dataGrid1.CurrentRowIndex][col2].ToString();
TextBox3=Ds.Tables[0].Rows[dataGrid1.CurrentRowIndex][col3];
cmd.CommandText="insert into temp value(textBox1,textBox2,textBox3)";
}
private void button1_Click(object sender, System.EventArgs e)
{
for(int i=0;i<ds.Tables[0].Rows;i++)
{
TextBox1=Ds.Tables[0].Rows[i][col1].ToString();
TextBox2=Ds.Tables[0].Rows[i][col2].ToString();
TextBox3=Ds.Tables[0].Rows[i][col3];
cmd.CommandText="insert into B value(textBox1,textBox2,textBox3)";
}
}