关于DataGridView行选定的问题(着急) 你选中一行后这一行会返回一个row[]再判断row[4]='123'则enable=false 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //参考如下代码2005调试通过 private void dataGridView1_SelectionChanged(object sender, EventArgs e) { button1.Enabled = (dataGridView1.CurrentRow == null) || (dataGridView1.CurrentRow.Cells[4].Value == null) || (dataGridView1.CurrentRow.Cells[4].Value.ToString() != "123"); } sql语句!select left join 2表取数据想将取出数据插入新表!急! 急急!WINFORM程序页面中有循环遍历控件判断是否为空? 怎样将数据库查询出来的数据写入.txt文件中 安装程序写注册表错误,写HKEY_CURRENT_USER,跑到HKEY_USERS里了。 有人看过《C#软件项目开发全程剖析》(讲sharpdevelop的)这本书没有? C#委托传值举例,在线等..... Property 与 attribute 的区别 数据邦定问题: 急。 我想直接用il 指令编写..net程序.那位有资料? 高手来帮忙看看,有关面向对象的问题 请教一个字符串的问题
private void dataGridView1_SelectionChanged(object sender, EventArgs e)
{
button1.Enabled = (dataGridView1.CurrentRow == null) ||
(dataGridView1.CurrentRow.Cells[4].Value == null) ||
(dataGridView1.CurrentRow.Cells[4].Value.ToString() != "123");
}