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

Clearing selection on Grid View

3 Answers 314 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Uzma
Top achievements
Rank 1
Uzma asked on 27 Jan 2011, 12:42 PM
Hi All,

I am trying to clear any selection on gridview after populating it and I am using gridview.clearselection() method for that but it is not clearing the selection for the entire row as one of the cell is still seleted with highlighted boundary line. I have set my selection mode to 'FullRowSelect'. Could anyone please get back to me asap?

3 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 27 Jan 2011, 01:13 PM
Hello,

After clearing the selection, set the Cell 0 to be Current = false

Me.RadGridView1.ClearSelection()
Me.RadGridView1.Rows(0).IsCurrent = False

Hope that helps but let me know if you need more information
Richard
0
Uzma
Top achievements
Rank 1
answered on 27 Jan 2011, 01:17 PM
Thank you very much. It worked!
0
Richard Slade
Top achievements
Rank 2
answered on 27 Jan 2011, 01:22 PM
No problem. Please remember to mark as answer .
Thanks
Richard
Tags
GridView
Asked by
Uzma
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Uzma
Top achievements
Rank 1
Share this question
or