本帖最后由 brucezhangwu 于 2009-12-28 20:16:05 编辑

解决方案 »

  1.   

    private void button1_Click(object sender, EventArgs e) 
            {             ArrayList al = new ArrayList(); 
                for (int i = 0; i < dataGridView1.Rows.Count; i++) 
                { 
                    if (dataGridView1.Rows[i].Cells[0].Value != null && 
                        dataGridView1.Rows[i].Cells[0].Value.ToString() == "True") 
                    { 
                        al.Add(dataGridView1.Rows[i].Cells[1].Value.ToString() + ";" + 
                            dataGridView1.Rows[i].Cells[2].Value.ToString()); 
                    } 
                }             if (al.Count > 0) 
                {                 if (this.Owner.GetType().Name.ToString() == "Form1") 
                    { 
                        instanceForm = (Form1)this.Owner; 
                        instanceForm.getDataFromAddress(al); 
                    } 
                } 
                this.Close(); 
                
            } 
      

  2.   

    借VS2010东风,CSDN为啥不搞一个VSTO版快!!!!【VSTO之家】
    http://vsto.5d6d.com【VSTO专家群】109033523
    【VSTO】数据获取
    【VSTO】对象起源
    【VSTO】MSDN
    【VSTO】Backstage View
    【VSTO】名人堂
    【VSTO】案例
    【VSTO】MOSS
    【VSTO】Excel Services
    【VSTO】Open XML
    【VSTO】资源、工具
    【VSTO】教学视频
    【VSTO】示例代码 
    【VSTO】Actions Pane
    【VSTO】智能标签 ...