摘要:
intindex= DataGridView1.CurrentRow.Index;//取得选中行的索引 txt_ProductId.Text= DataGridView1.Rows[index].Cells["Id"].Value;//获取单元格列名为‘Id’的值 阅读全文
posted @ 2015-04-30 19:47
傻逼程序猿
阅读(7060)
评论(0)
推荐(0)
摘要:
string coonString="server=.;database=MySchool(你的数据库名称);uid=sa(登录数据库时的名称);pwd=123(密码可为空)"; SqlConnection coon=new SqlConnection(coonString);SqlCommand ... 阅读全文
posted @ 2015-04-30 19:11
傻逼程序猿
阅读(245)
评论(0)
推荐(0)
浙公网安备 33010602011771号