Last Updated: October 10, 2023
·
3.805K
· hjwu

How to Changing Row Color on DevExpress GridView

The trick to trigger is following

gridView1.RefreshRow(rowhandle);

Reference : Changing Row Colours on DevExpress GridView

By the way, in my experience, using FocusRowHandle is BETTER than GetFocusedDataSourceRowIndex !!

Because GetFocusedDataSourceRowIndex may occur ERROR when sorting columns,

UPDATE : the following is also need !!

e.HighPriority = true;