Serviceinformation和Productdiscount是 Activity弹出的窗体。
Serviceinformation的dataGridView1和Productdiscount的
dataGridView1全部传到Activity的dataGridView1。
怎么传啊 。
ExportDate 已经写好的导出类。dgvOutPutExcel()方法直接就可以导出dataGridView1 private void button2_Click(object sender, EventArgs e)
{
Productdiscount pd = new Productdiscount();
if (MessageBox.Show("您确定要导出吗?", "提示",
MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
{
ExportDate ep = new ExportDate();
ep.dgvOutPutExcel(dataGridView1);
Serviceinformation中的 dataGridView1怎么导出
Productdiscount的dataGridView1怎么导出。求高手 } }
Serviceinformation的dataGridView1和Productdiscount的
dataGridView1全部传到Activity的dataGridView1。
怎么传啊 。
ExportDate 已经写好的导出类。dgvOutPutExcel()方法直接就可以导出dataGridView1 private void button2_Click(object sender, EventArgs e)
{
Productdiscount pd = new Productdiscount();
if (MessageBox.Show("您确定要导出吗?", "提示",
MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
{
ExportDate ep = new ExportDate();
ep.dgvOutPutExcel(dataGridView1);
Serviceinformation中的 dataGridView1怎么导出
Productdiscount的dataGridView1怎么导出。求高手 } }
ep.dgvOutPutExcel(pd.dataGridView1);
ep.dgvOutPutExcel(Serviceinformation实例.dataGridView1);
如果还要合并了显示,就遍历两个 dataGridView1 的行单元格,逐行添加吧
private void button2_Click(object sender, EventArgs e)
{
Productdiscount pd = new Productdiscount();
Serviceinformation si = new Serviceinformation();
if (MessageBox.Show("您确定要导出吗?", "提示",
MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
{
ExportDate ep = new ExportDate();
ep.dgvOutPutExcel(dataGridView1);
ep.dgvOutPutExcel(pd.dataGridView1);
ep.dgvOutPutExcel(si.dataGridView1); }
现在怎么合并啊,求代码