Hello,
I have a problem with the RowStyleSelector.
I want to apply a particular
style according to particular values in my SfDataGrid while maintaining an alternate row style.
When I use a SfDataGrid with DetailsViewDefinition option,
in my CustomRowStyleSelector,
the row indexes are 1,3,5,7 instead of 1,2,3,4,5.
I can’t use AlternatingRowStyle because
this one overrides RowStyleSelector.
Currently,
I’ve fixed the problem by using this formula: if ((row.RowIndex + 1) % 4 != 0).
I think it’s
not a reliable solution. Do you have another/better solution?
Best regards,
Aurélien
Attachment:
App9_d4a6b62f.zip