C# 如何datagrateveiw 一列的值和TextBox的值作对比 如题,都datagrateveiw1,和TextBox1,如何取出datagrateveiw1第二列的所有值和TextBox1.text作对比? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 foreach (DataGridViewRow r in this.dataGridView1.Rows) { if (r.Cells[1].Value != null) { if (r.Cells[1].Value.ToString() == TextBox1.Text) { ...... } } } for(int i=0;i<datagridview1.Rows.Count;i++){ if(datagridview1.Rows[i][1].ToString()==textbox1.Text) {}} foreach (DataRow dt in myDataView.Table.Rows) { if (dt[0].ToString() == name) return true; } C#处理特殊字符 线程问题,请指教。。 鼠标在webbrowser上面移动的问题求救(急)。。。 遇到一个数据库的问题 请大家帮忙解决一下一个关于线程的大问题..... 000OOO111lll !!!!请推荐winform下免费且好用的图表控件!!!!!!! datagrid更新数据库问题 C#、C++和Java中重载和覆盖的一点问题 MONO 0.18出了!!!新版本的ASP.NET已经可以在LINUX上正常运行IBUYSPY了! 从数据库表中获取数据 C#winform程序当用户遇到程序异常时,不能更改是否登录的状态,如何解决?
{
if (r.Cells[1].Value != null)
{
if (r.Cells[1].Value.ToString() == TextBox1.Text)
{
......
}
}
}
{
if(datagridview1.Rows[i][1].ToString()==textbox1.Text)
{}
}
{
if (dt[0].ToString() == name) return true;
}