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

Select Cell

2 Answers 102 Views
GridView
This is a migrated thread and some comments may be shown as answers.
jam ban
Top achievements
Rank 1
jam ban asked on 17 Mar 2010, 09:18 AM
Hi room !

When I Select Cell on RadGridView, I want only color Cell Selected.

I don't want color border that row.

Help me!

Thanks 

2 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 17 Mar 2010, 02:49 PM
Hello jam ban,

We will appreciate it if you address the questions we sent you in your "Disable Mouse Right" ticket. Your answers will help us address your questions better.

As to the current question, you can customize the theme by using the Visual Style Builder, or you can handle CellFormatting and RowFormatting events and change the row style. Here is a sample:

void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e)
{
    if (!e.CellElement.IsCurrent && e.CellElement.RowInfo.IsCurrent)
    {
        e.CellElement.BorderColor = Color.FromArgb(208, 215, 229);
    }
    else
    {
        e.CellElement.ResetValue(LightVisualElement.BorderColorProperty, ValueResetFlags.Local);
    }
}
 
void radGridView1_RowFormatting(object sender, RowFormattingEventArgs e)
{
    e.RowElement.DrawFill = false;
}

Kind regards,

Jack
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.
0
jam ban
Top achievements
Rank 1
answered on 18 Mar 2010, 02:38 AM
Thank you!
Tags
GridView
Asked by
jam ban
Top achievements
Rank 1
Answers by
Jack
Telerik team
jam ban
Top achievements
Rank 1
Share this question
or