【问题标题】:How to make focused row highlighted by border on XtraGrid如何在 XtraGrid 上通过边框突出显示焦点行
【发布时间】:2012-11-23 12:19:49
【问题描述】:

目前,我可以通过更改 RowStyle 事件中的背景外观颜色来突出显示焦点行。但它不提供更改该行的边框。

我尝试覆盖 XPaint 的 DrawFocusRectangle,但如果网格未聚焦,它不会显示。

请给我另一种方法?

【问题讨论】:

    标签: winforms focus devexpress highlighting xtragrid


    【解决方案1】:

    您需要使用CustomDrawCell 事件并绘制行边框。

    How to draw thick cell borders by handling the Paint event

    如果你想实现类似excel的选择功能,paint事件会给你一个更好的结果-http://www.devexpress.com/Support/Center/p/Q202033.aspx

    【讨论】:

      猜你喜欢
      • 2017-04-04
      • 2011-02-25
      • 1970-01-01
      • 2016-04-07
      • 2021-09-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多