DataGridView 中CurrentRow、CurrentCell的问题? DataGridView 中CurrentCell ,如果设置当前单元格的样式(边框,背景)和CurrentRow的样式?备注:SelectionMode 属性值:FullRowSelect。在线等待。。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 所有行: dataGridView1.RowsDefaultCellStyle.Font = new Font("宋体", 9, FontStyle.Strikeout);dataGridView1.RowsDefaultCellStyle.ForeColor = Color.Blue;dataGridView1.RowsDefaultCellStyle.BackColor = Color.Red;选中行:dataGridView1.SelectedRows[0].DefaultCellStyle.Font = new Font("宋体", 9, FontStyle.Strikeout);dataGridView1.SelectedRows[0].DefaultCellStyle.ForeColor = Color.Blue;dataGridView1.SelectedRows[0].DefaultCellStyle.BackColor = Color.Red;去官方看更加详细 LMAOhuaNL:你测试过么?SelectionMode 属性值:FullRowSelect。 请教个算法 类文件与打开软件的速度关系 谁能解决我的图片下载问题? 当登陆成功后,标签控件为什么不显示Sesion 对数据库字段进行排序问题。求高手 关于事件和接口的问题!!!!!! 菜鸟问题。。。。。。。解决马上给分!!!多谢! 我用ajax将文件路径传入后台,然后在后台将datatable绑定到gridview里,datatable有数据但是页面不显示,好像得刷新一下页面,怎么局部刷新 winform录制视频的时候,文件很大,怎么让视频文件变小 set, get这些是什么? C#+Access C#中如何判断目录权限是可写的,还有删除的时候,如何判断文件正在使用?
dataGridView1.RowsDefaultCellStyle.ForeColor = Color.Blue;
dataGridView1.RowsDefaultCellStyle.BackColor = Color.Red;选中行:dataGridView1.SelectedRows[0].DefaultCellStyle.Font = new Font("宋体", 9, FontStyle.Strikeout);
dataGridView1.SelectedRows[0].DefaultCellStyle.ForeColor = Color.Blue;
dataGridView1.SelectedRows[0].DefaultCellStyle.BackColor = Color.Red;去官方看更加详细
SelectionMode 属性值:FullRowSelect。