RowFormattingイベントの実行時にTelerikWinFormsRadGridViewで行の背景色を設定するためのトリックはありますか?このイベントでRowElement.Fontを設定することはできますが、RowElement.BackColorを設定することはできません。デバッガーでコードをステップ実行し、行が実行されていることを確認しました(イベントは適切に「接続」されています)。
void grid_RowFormatting(object sender, Telerik.WinControls.UI.RowFormattingEventArgs e)
{
if (e.RowElement.RowInfo.Cells["CODE"].Value.ToString() == "X"))
{
// the following line is executed but has no apparent effect
e.RowElement.BackColor = System.Drawing.Color.Aqua;
}
}