Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
205
Set a row appearance like if it's selected
posted

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

Parents
No Data
Reply
  • 2334
    posted

    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.

Children