Hiding default gray column in datagridview winform

前端 未结 6 1368
终归单人心
终归单人心 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 04:55

    Just put this piece of code. Worked for me.

    DataGrid.RowHeadersVisible = false;
    DataGrid.ColumnHeadersVisible = false;
    

提交回复
热议问题