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

[Solved] Binding RadGridview Row

1 Answer 117 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.
Piyush Patel
Top achievements
Rank 1
Piyush Patel asked on 24 Nov 2009, 05:33 AM
Hello Friends !
I m working onsilverlight 3.0 beta version.
I m using RadGrdidview in my Pages.I m counting Gridview items. but when I Add New Rows in 
Gridview . The counting not increses. Entry going into Database but Gridview row counting display old counting number. How to possible when data going into Databse at that time counting Also increse. PSL send me code sample.

Thank you!

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 24 Nov 2009, 06:54 AM
Hello Piyush Patel,

What is you binding scenario? If the grid is bound to a non-onservable collection (one that does not implement INotifyCollectionChanged) RadGridView has no way of knowing that this collection has changes and update its item count.

If the grid is bound to an ObservableCollection for example the grid will be able to pick up such changes and refresh.

Another solution is to call Rebind after new items have been added to the source collection.


Sincerely yours,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Piyush Patel
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or