This is a migrated thread and some comments may be shown as answers.

How Can I get the selectRow

1 Answer 41 Views
Menu
This is a migrated thread and some comments may be shown as answers.
weng jinbao
Top achievements
Rank 1
weng jinbao asked on 13 Jun 2010, 03:37 AM
I  am using RadGridView  I want to Dynamic Modify the rowstyle such as FontWeight of rowstyle. when the databinding to RadGridView  .I set all rows FontWeight  to FontWeights.Normal. when I edit the selectitem i want set the FontWeight of  selectrow to FontWeights.Bold.

How can i to do this?

   private void radButton1_Click(object sender, EventArgs e)
{
    RadGridView .SelectRow.RowStyle=new Setter(GridViewRow.FontWeightProperty, FontWeights.Bold);
}

I can Get the SelectItem  but how to Get the SelectRow?


   



1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 14 Jun 2010, 07:22 AM
Hello,

 You can use ItemContainerGenerator similar to this demo.

Sincerely yours,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Menu
Asked by
weng jinbao
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or