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

Want to lose focus from first RadGridview when selecting second RadGridView

1 Answer 32 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Syed Nadeem
Top achievements
Rank 1
Syed Nadeem asked on 20 Apr 2010, 11:38 AM
Hi,

I have two radGridViews on my page (representing the ToDo Tasks and the Completed Tasks) along with a third Grid which shows the details of the selected row in either of the two radGridViews. 

I tried explicitly setting the focus on the selected radGridView using the code below:
        private void RadGridView1_SelectionChanged(object sender, SelectionChangeEventArgs e)
        {
         //some code
            RadGridView1.Focus();
}

        private void RadGridView2_SelectionChanged(object sender, SelectionChangeEventArgs e)
        {
         //some code
            RadGridView2.Focus();
}


This still doesn't help me. When I select ToDo GridVIew (RadGridView1)and it shows the details on the normal GRID. Then I select on the CompletedGridView(RadGridView2) and it also shows the details on the normal GRID. But what I want to avoid is after the second step, a selected row is highlighted in both the GridViews.


Any help will be appreciated.

Thanks,
Syed Nadeem.

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 23 Apr 2010, 09:39 AM
Hi Syed Nadeem,

You may hide the selection highlight the folowing way :

RadGridView.SelectedItems.Clear()

All the best,
Pavel Pavlov
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
GridView
Asked by
Syed Nadeem
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or