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

Refresh Gridview when database updated

2 Answers 210 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rikin Patel
Top achievements
Rank 1
Rikin Patel asked on 01 Mar 2010, 06:42 AM
Problem:
    1. How to Refresh Radgridview when i Insert Record in database and update record.
    2.when i am Insert or Update Record than in radgridview that row is selected.

i am useing sql server 2005.

i am use to set data source of radgridview like " radgridview1.ItemsSource = ds; "  ==> ds is dataset.

i am beginner so if possible than tel me by code it is easy to understand.......

can u help me as early as possible ....


2 Answers, 1 is accepted

Sort by
0
Rikin Patel
Top achievements
Rank 1
answered on 05 Mar 2010, 01:57 PM
pls any one reply me pls ......

pls help me .............
0
xola139
Top achievements
Rank 1
answered on 06 Apr 2010, 10:09 PM
Hi Rikin
Check out this post http://www.telerik.com/community/forums/wpf/gridview/radgridview-asynchronous-dataloadmode-doesn-t-refresh-grid.aspx  I was looking for the same help and I found this example in the forum I hope you find it useful.

Other possible solution

Another possible solution is that after making "radgridview1.ItemsSource = ds; "  ==> ds is dataset. method executes Rebind() in your radgridview: For example

radgridview1.ItemsSource = ds;
radgridview1.Rebind();

Regards
Tags
GridView
Asked by
Rikin Patel
Top achievements
Rank 1
Answers by
Rikin Patel
Top achievements
Rank 1
xola139
Top achievements
Rank 1
Share this question
or