DevExtreme DataGrid - Set cell color based on a condition

0
0

Hi!

I’m trying to set cell color based on a condition, but I’m not getting it.

May you help me, please?

Thanks,
Ulisses.

  • You must to post comments
0
0

Here is some sample code that will set the text color to red:

Me.DxDataGrid1.Eval($"
var el = this.widget.getRowElement({e.Data("rowIndex")});
el.css('color', 'red');
")

See this example from the DevExpress documentation:
https://supportcenter.devexpress.com/ticket/details/t984736/datagrid-how-to-change-the-cell-s-background-color

  • Ulisses
    Perfect, Julie! Thank you very much!
  • You must to post comments
0
0

Hi, Frank!

I have attached a small test. This is the only thing missing for me to complete a project.

Thanks for your help!
Ulisses.

  • You must to post comments
0
0

Hi Ulisses,

can you please wrap a small test case showing what you tried already?

Best regards
Frank

  • Ulisses
    Hi, Frank! May you help me, please? Thank you very much!
  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.