一、列表功能展示
二、具体步骤
2.1,列表控件设计部分
2.1-① 在窗口SmoiblerForm1中加入gridview控件
2.1-② 在属性栏设置gridview控件的大小和位置
2.1-③ 将数据库与gridview进行绑定,绑定过程例如以下:
(请点击图片进行查看)
2.2, 列表中cell设计部分
2.2-① 新建一个窗口。命名为SmobilerLayout1
2.2-② 设置窗口大小
2.2-③ 加入控件并设置相关属性(在此仅展示部分重要属性)
2.3。 设置GridView
2.3-① 回到SmobilerForm1,选中GridView控件,在属性Layout处填写“SmobielrLayout1”
2.3-② 选择SmoiblerForm1窗口→事件→Load事件→双击→写代码
![](http://www.smobiler.com/bbs/data/attachment/forum/201601/26/162852zp9zbdgswh6bqqlz.png)
二、具体步骤
2.1,列表控件设计部分
2.1-① 在窗口SmoiblerForm1中加入gridview控件
![](http://www.smobiler.com/bbs/data/attachment/forum/201601/26/163323yjj9g220hfmomfd0.png)
2.1-② 在属性栏设置gridview控件的大小和位置
![](http://www.smobiler.com/bbs/data/attachment/forum/201601/26/163532gsszc7f8one7orsr.png)
![](http://www.smobiler.com/bbs/data/attachment/forum/201601/26/163532koxu4j2rx3o23bob.png)
2.1-③ 将数据库与gridview进行绑定,绑定过程例如以下:
![](http://www.smobiler.com/bbs/data/attachment/forum/201601/26/163916p5evcqtxfjqop5tx.png)
![](http://www.smobiler.com/bbs/data/attachment/forum/201601/26/163929l02bm0223xcggkit.png)
![](http://www.smobiler.com/bbs/data/attachment/forum/201601/26/170600aeh6khs6dcy33h6h.png)
(请点击图片进行查看)
2.2, 列表中cell设计部分
2.2-① 新建一个窗口。命名为SmobilerLayout1
![](http://www.smobiler.com/bbs/data/attachment/forum/201601/26/171102q5asr5ai4f1dhdwc.png)
2.2-② 设置窗口大小
![](http://www.smobiler.com/bbs/data/attachment/forum/201601/26/171240aj0aejajnw37j1g0.png)
2.2-③ 加入控件并设置相关属性(在此仅展示部分重要属性)
![](http://www.smobiler.com/bbs/data/attachment/forum/201602/15/135255wojjp0zp8rswrrxs.png)
2.3。 设置GridView
2.3-① 回到SmobilerForm1,选中GridView控件,在属性Layout处填写“SmobielrLayout1”
![](http://www.smobiler.com/bbs/data/attachment/forum/201602/15/142137jcccx5x4kxcz4tbt.png)
2.3-② 选择SmoiblerForm1窗口→事件→Load事件→双击→写代码
![](http://www.smobiler.com/bbs/data/attachment/forum/201602/15/144232wkf996x48gffto2k.png)
源代码地址(解压缩后在Visual Studio环境中执行就可以):http://download.csdn.net/detail/rabbit199077/9477523