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