• 2024-10-26C# DataGridView 禁用或灰显单元格 只读 清除单元格选择
    1.清除单元格选择DataGridView.ClearSelection();效果2.单元格灰显//单元格设为只读DataGridView.ReadOnly=true;//表格背景色DataGridView.BackgroundColor=SystemColors::Control;//标题栏背景色DataGridView.ColumnHeadersDefaultCellStyle.BackColor=Sys