I'm using radgridview
in C# winform application to show data from database. I'm also altering database through ADO.Net. The problem is after I change the database, for example by deleting a row or adding a new row, changes do not appear in gridview.
I also want to mention that I have bound database to gridview through smart tags and when I tried to create a new dataset and assign it to radgridview1.datasource
I got tons of errors.
Any suggestion on how can force radgridview
to reload it's datasource
?
When datasource get changes, to refresh datagrid use following code :
this.radGridViewName.MasterTemplate.Refresh(null);
this line solved my problem :-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With