回复 1楼CanYou2的帖子
谢谢您的反馈。
C1FlexGrid的Mouse鼠标滑过的效果只能通过相应的鼠标事件去设置,比如MouseMove。
代码参考:
- private void flex_MouseMove(object sender, MouseEventArgs e)
- {
- if (flex.IsMouseOver == true)
- {
- HitTestInfo hf = flex.HitTest(e);
- for (int i = 0; i < flex.Rows.Count; i++)
- {
- if (hf.Row >= 0)
- {
- if (hf.Row == i)
- {
- flex.Rows[i].Background = Brushes.Red;
- }
- else
- {
- flex.Rows[i].Background = Brushes.White;
- }
- }
- }
- }
- }
复制代码 |