突出显示选中的行数据
设置DataGridView的SelectionMode属性为FullRowSelect ,使控件能够整行选择
设置 ReadOnlY 属性为TRUE 使其只读
设置DefaultCellStyle.SelectionBackColor 属性 即可
突出显示选中的行数据
设置DataGridView的SelectionMode属性为FullRowSelect ,使控件能够整行选择
设置 ReadOnlY 属性为TRUE 使其只读
设置DefaultCellStyle.SelectionBackColor 属性 即可