标签:arp 调用 sts datagrid 方式 idv box sum cos
int column_key = 0; private DataGridViewTextBoxColumn column_add(string name) { DataGridViewTextBoxColumn txtClum = new DataGridViewTextBoxColumn(); txtClum.DataPropertyName = "txt" + column_key++.ToString(); txtClum.Name = "txt" + column_key++.ToString() ; txtClum.HeaderText = name; return txtClum; }
//调用column_add添加列
dgvCostSum.Columns.Add(column_add("日期")); dgvCostSum.Columns.Add(column_add("姓名/单位")); dgvCostSum.Columns.Add(column_add("流水号")); dgvCostSum.Columns.Add(column_add("体检金额")); dgvCostSum.Columns.Add(column_add("收费员")); dgvCostSum.Columns.Add(column_add("支付方式"));
标签:arp 调用 sts datagrid 方式 idv box sum cos
原文地址:https://www.cnblogs.com/aj407blogs/p/9779933.html