当dropdwonlist中的字体改变后,设置DataGridView的字体:
使用DataGridView..::.DefaultCellStyle 属性 
dataGridView1.DefaultCellStyle.Font=

解决方案 »

  1.   

    如何让DataGridView中的字体随着dropdwonlist或combox中的字体改变
      

  2.   

    RowDataBound Event 获取dropdown的value 来设置 gridview的字体。 找....font-size类似于这样的属性 赋值 应该就OK 了。
      

  3.   


    要用comboBox1.Textprivate void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
    {
        dataGridView1.DefaultCellStyle.Font = new Font(this.comboBox1.Text,12f);
    }