How to change color of selected row on click event?

Hi All,

I need to change color of selected row on Radzen Grid. Could you please give me syntax for this ?

protected async System.Threading.Tasks.Task Grid0RowSelect(CspAzurePortal.Models.Localhost.CsTicket args)
{

        //Need to hightlight the gridRowSelect
       // args.Attributes.Add("style", $"background-color: color:white");
      // This syntax is not working
     
    }

Regards
Chandradev

Hi @Chandradev819,

There are multiple threads showing that. Try the forum search: Search results for 'change row background' - Radzen

Thanks for reply. In all forum thread, I am getting this syntax,
args.Attributes.Add("style", $"background-color: rgba({ColorError})");

but for grid RowSelect event, args.Attributes. is not there so i am not able to apply background color.