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

[Solved] Problem with RadGridView Default SelectedItem

3 Answers 156 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Projects Computerra
Top achievements
Rank 1
Projects Computerra asked on 22 Feb 2010, 04:59 AM
Hello Telerik Team 

I have problem regarding Default selection of RadGridView.
I am using following code for bind radgridview.
Please give us proper solution, Its working in previous version (2009.3.1103.1030) but in new version I found this problem ( 2009.3.1412.1030, 2009.3.1419.1030)


 

PagedCollectionView pcv = new PagedCollectionView(objTemp);
pcv.MoveCurrentToPosition(-1);

 

DataContext = pcv;

grdResult.Visibility =

Visibility.Visible;

Thanks 

 

3 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 24 Feb 2010, 03:54 PM
Hello Projects Computerra,

Could you please give us more details about the problem that you are facing? Are you receiving an exeption when calling "pcv.MoveCurrentToPosition(-1);"?


All the best,
Milan
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
Projects Computerra
Top achievements
Rank 1
answered on 25 Feb 2010, 05:21 AM
Hi Milan

I didn't get any error but when i bind gridview using below code first row select automatically that i don't want.
I had use pcv.MoveCurrentToPosition(-1)  for clear Default Selected (CurrentItem) item in pcv (PagedCollectionView ) object but it will not effect in GridView binding.

PagedCollectionView pcv = new PagedCollectionView(objTemp);

pcv.MoveCurrentToPosition(-1);

 

DataContext = pcv;

grdResult.Visibility =

Visibility.Visible;

I hope you will now clear.


Thanks

0
Milan
Telerik team
answered on 01 Mar 2010, 12:45 PM
Hello Projects Computerra,

Unfortunately we were unable to reproduce the problem. Could you please send us a sample project that we can use to reproduce the issue?

Thank you for your time.

All the best,
Milan
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
Projects Computerra
Top achievements
Rank 1
Answers by
Milan
Telerik team
Projects Computerra
Top achievements
Rank 1
Share this question
or