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

grid.Items is empty, though ItemsSource is not

1 Answer 69 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.
Dragan
Top achievements
Rank 1
Dragan asked on 15 May 2012, 01:54 PM

I have a RadGridView object which is connected to EntitySet via ItemsSource property.

After loading, in entity set there are 4 elements, user can see rows in GUI, but the grid.Items property is empty.

I can see it in watch window while debugging :

  gridStudents.Items.Count       0                                           int

  ((System.ServiceModel.DomainServices.Client.EntitySet<IStudents.Web.Services.RelationshipsStudent>)gridStudents.ItemsSource).Count 4            int

 Shouldn't gridStudents.Items return same collection as underlying itemsSource ?

1 Answer, 1 is accepted

Sort by
0
Kannan
Top achievements
Rank 1
answered on 20 May 2012, 10:57 AM
Hi Telerik Team,

I'm also facing same issue. In some scenario, when setting the bounded item source of the data grid, the Items collection of the RadGridView is less that the ItemsSource collection. The grid also displaying less number of rows. May I know why it behaves like this ?

Thanks & Regards,
Kannan
Tags
GridView
Asked by
Dragan
Top achievements
Rank 1
Answers by
Kannan
Top achievements
Rank 1
Share this question
or