android开发 怎么用Gridview排列图片 图片怎么从本机的图库中获取并显示在GridView里 而且是图库增加图片
2个回答
展开全部
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
string sql = "select teacherid;loginid as ID;loginpwd as 密码;teachername as 姓名;sex as 性别;birthday as 生日 from teacher";
dataadapter = new SqlDataAdapter(sql,DBHerper.connection);
dataadapter .Fill (dataset ,"teacher");
dataGridView1.DataSource =dataset.Tables["teacher"];
}
{
string sql = "select teacherid;loginid as ID;loginpwd as 密码;teachername as 姓名;sex as 性别;birthday as 生日 from teacher";
dataadapter = new SqlDataAdapter(sql,DBHerper.connection);
dataadapter .Fill (dataset ,"teacher");
dataGridView1.DataSource =dataset.Tables["teacher"];
}
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
c#可以写安卓程序?
追问
不是C# 是java 语言
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询