现在的位置: 首页 > 综合 > 正文

动态绑定 datagridview

2012年05月27日 ⁄ 综合 ⁄ 共 242字 ⁄ 字号 评论关闭
//绑定该邮箱到datagridview
                int index = this.dataGridViewSendEmail.Rows.Add();
                DataGridViewRow row = this.dataGridViewSendEmail.Rows[index];
                row.Cells[1].Value = emailAddr;
                row.Cells[2].Value = "正常";
                row.Cells[3].Value = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");

 

抱歉!评论已关闭.