using System; using System.Data; using System.Drawing; using System.Windows.Forms; using Yanwen.Logistics.Business.Logics; using Yanwen.Logistics.Business.Models.ExpressTransport; using Yanwen.Logistics.Desktop.Extensions; namespace Yanwen.Logistics.
Dictionary解析json,1.根据json建立相应的实体类,json里面的数组形式放进list集合2.取list中的数据,将相应的数据绑定到DataGridView,如下:循环(动态添加一行数据,并将list集合中的数据显示在第2,3,4列)实现了,第一次循环,DataGridView添加一行,将从list取到的几个字段的数据添加到第2,3,4列, 第二次循环,DataGridView再添加一行,将从list取到的几个字段的数据继续添加到第2,3,4列,... var js = new
实现: 点击button1,从数据库中获得数据,指定数据库的某列数据插入到DataGridView指定列 一.双击button1进入事件代码 private void button1_Click(object sender, EventArgs e) { using (SQLiteConnection con = new SQLiteConnection(Constants.DATA_SOURCE)) { con.Open(); using (SQLiteCommand cmd = new SQ
创建后表的修改 alter table 语句用于创建后对表的修改, 基础用法如下: 添加列 基本形式: alter table 表名 add 列名 列数据类型 [after 插入位置]; 示例: 在表的最后追加列 address: alter table students add address char(60); 在名为 age 的列后插入列 birthday: alter table students add birthday date after age; 修改列 基本形式: alter