×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

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.
            • 服了你了,那只是一个例子,你可以用这种思路去实现你的要求。