Hi,
I'd like to set a row appearance like if it's selected. Is there any way to do it in run-time?
Thanks,
Jan
Clone the selected row appearance then apply it to the row you want to look selected.
AppearanceBase selectedApp = grid.DisplayLayout.Override.SelectedRowAppearance.Clone();
row.Appearance = selectedApp;
Depending on what you mean by 'selected' you may want to clone the ActiveRowAppearance not the SelectedRowAppearance.
Thanks for reply,
I tried to do it just like you wrote but it didn't help. The row still looks like it's not selected. I noticed that the cloned appearance doesn't contain any changed properties e.g. backcolor. Any idea?
Many thanks,
Try cloning the ActiveRowAppearance insteald of the SelectedRowAppearance.
See attached sample.