Hiding default gray column in datagridview winform

前端 未结 6 1373
终归单人心
终归单人心 2020-12-01 04:02

Is there any way to remove or hide winform\'s datagrid gray area when data is not avaiable?

Second this how to remove/hide the default gray column?

          


        
6条回答
  •  孤街浪徒
    2020-12-01 05:01

    Just set the Background-Color and the RowHeadersVisible-State of your DataGridView:

    dataGridView1.BackgroundColor = Color.White;
    dataGridView1.RowHeadersVisible = false;
    

提交回复
热议问题