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
345
How can I HighLight a Row?
posted

My Grid is NOT read only, so I can't set the CellClickAction to SelectRow.  I set both the ActiveRow and SelectedRow's backgroup to Red, but only the clicked cell shows as Red.   How do i set the whole row as Red background?

 

Thanks!

 

Amy

Parents
No Data
Reply
  • 3707
    posted

    You can set the active row's background appearance by doing the following.

    private void ultraGrid1_InitializeLayout(object sender, InitializeLayoutEventArgs e)
    {
       ultraGrid1.DisplayLayout.Override.ActiveRowAppearance.BackColor = Color.Salmon;
    }

    Also, if you're using an ISL style file to make a sexier looking grid then you could edit that style file's common states for the grid in AppStylist so the active row highlights what ever color or background image you'd like.

Children