Sean Smyth
Sean Smyth

Reputation: 1581

How do I highlight an active row in a Infragistics grid?

I have a row that I activated via code. However, I need it to be highlighted as well, but can't seem to find the correct property to set. How can I do this via C#?

Upvotes: 1

Views: 4984

Answers (2)

CharlesMighty
CharlesMighty

Reputation: 572

I think the following solution should work for you:

ultraGrid1.DisplayLayout.Override.ActiveRowAppearance.BackColor = Color.IndianRed;
ultraGrid1.Rows[0].Activate(); //programatically set active row
ultraGrid1.Selected.Rows.Clear(); //clear your selection of previous row

Upvotes: 1

Sam
Sam

Reputation: 789

You can change the appearance of the active row through the ActiveRowAppearance

Upvotes: 1

Related Questions