110,534
社区成员
发帖
与我相关
我的任务
分享
DataTable dt2 = ht["多收费记录"] as DataTable;
for (int i = 0; i < dt2.Rows.Count; i++)
{
DataGridViewRow row = new DataGridViewRow();
this.DataGridView1.Rows.Add(row);
row.Cells["yhdm"].Value = dt2.Rows[i]["bank_id"].ToString();
row.Cells["lsbh"].Value = dt2.Rows[i]["id"].ToString();
row.Cells["rq"].Value = dt2.Rows[i]["tpdate"].ToString();
row.Cells["ss"].Value = dt2.Rows[i]["realpay"].ToString();
row.Cells["khh"].Value = dt2.Rows[i]["custid"].ToString();
row.Cells["khdbh"].Value = dt2.Rows[i]["client"].ToString();
row.Cells["qqm"].Value = dt2.Rows[i]["reqcode"].ToString();
}
DataGridViewRow row = new DataGridViewRow();
row.Cells["yhdm"].Value = dt2.Rows[i]["bank_id"].ToString();
row.Cells["lsbh"].Value = dt2.Rows[i]["id"].ToString();
row.Cells["rq"].Value = dt2.Rows[i]["tpdate"].ToString();
row.Cells["ss"].Value = dt2.Rows[i]["realpay"].ToString();
row.Cells["khh"].Value = dt2.Rows[i]["custid"].ToString();
row.Cells["khdbh"].Value = dt2.Rows[i]["client"].ToString();
row.Cells["qqm"].Value = dt2.Rows[i]["reqcode"].ToString();
this.DataGridView1.Rows.Add(row);
DataTable dt2 = ht["多收费记录"] as DataTable;
for (int i = 1; i < dt2.Rows.Count; i++)
{
DataGridViewRow row = new DataGridViewRow();
this.DataGridView1.Rows.Add(row);
row.Cells["yhdm"].Value = dt2.Rows[i-1]["bank_id"].ToString();
row.Cells["lsbh"].Value = dt2.Rows[i-1]["id"].ToString();
row.Cells["rq"].Value = dt2.Rows[i-1]["tpdate"].ToString();
row.Cells["ss"].Value = dt2.Rows[i-1]["realpay"].ToString();
row.Cells["khh"].Value = dt2.Rows[i-1]["custid"].ToString();
row.Cells["khdbh"].Value = dt2.Rows[i-1]["client"].ToString();
row.Cells["qqm"].Value = dt2.Rows[i-1]["reqcode"].ToString();
}