×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

Check this site and see if it's useful to you

http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp?print=745
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / C# Window Application: How to set DataGrid row color
    In my C# windows application. I need to setup different row color base on different value. for example, if coloum1 value is 1, set this row is Red, if column1 value is 2, set this row is blue, etc. Any help would be appreciated.
    • Check this site and see if it's useful to you
      http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp?print=745
      • Thanks 糊涂阿福, it's only set color in one cell, I need to set color for whole row.
        • 单个cell都可以了,整行不就是个loop吗?
          • it's different. it likes an event in cell. you can not find other cells in same row. I am a new guy in C#. I have no more experience in DataGrid.
            • 服了你了,那只是一个例子,你可以用这种思路去实现你的要求。