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

Prevent selection on data binding

1 Answer 14 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Russell Mason
Top achievements
Rank 1
Russell Mason asked on 05 May 2010, 03:47 PM
Hi

If I databind to a list the grid seems to automatically select the first row. I have 3 problems with this.

1) I don't want any rows seleted by default
2) When sorting is set in XAML the first row in the data source may actually be part way through the list so if sorted it seems odd that a 'random' row is selected
3) The selection changed event fires (see 1)

Can this be achieved without writing code (using MVVM) and the event firing?

Thanks
Russell Mason

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 05 May 2010, 03:57 PM
Hi Russell Mason,

Setting IsSynchronizedWithCurrentItem to false will take care of the problem.


Sincerely yours,
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
Russell Mason
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or