第一种,使用SqlDataReader绑定gridview.代码如下: public SqlDataReader bind() { SqlConnection con = new SqlConnection(sqlcon); string sql = "SELECT * FROM test"; SqlCommand cmd = new SqlCommand(sql, con); con.Open(); SqlDataReader dr = cmd.ExecuteReader(Comma…
Android Studio 是一个新的基于 IntelliJ IDEA Android 的安卓开发环境,它对 Eclipse ADT 进行了改进并新增了功能. Feature Android Studio ADT Build system Gradle Ant Maven-based build dependencies Yes No Build variants and multiple-APK generation (great for Android Wear) Yes No Advan…