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

RadGridView won't FullRowSelect

1 Answer 228 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 01 Feb 2011, 06:10 PM
I've been going around and around with this. I have a RadGridView in which I want the user to be able to click rows, but not select individual cells. I basically want no cell highlighting.

I have the selection mode set to FullRowSelect - and I've tried setting this both through the property inspector and via code - and yet a click on any given cell will select that cell and not the row.

I've gone so far as to add an event-handler for the SelectionChanged event and trying to clear the selection there with RadGridView.ClearSelection() but the cell remains selected.

What am I missing here?

1 Answer, 1 is accepted

Sort by
0
Tony
Top achievements
Rank 1
answered on 01 Feb 2011, 06:14 PM
Disregard.

Found the solution in another post after remodifying my search.


void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e)
{
            if (e.CellElement.IsCurrent)
            {
                e.CellElement.DrawFill = false;
            }
}
Tags
GridView
Asked by
Tony
Top achievements
Rank 1
Answers by
Tony
Top achievements
Rank 1
Share this question
or