Click here to Skip to main content
15,903,523 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,
After I insert one record in a table, i am going to refresh datagrid such that user could see the result, i used this:
C#
Context.Refresh(System.Data.Linq.RefreshMode.OverwriteCurrentValues,Context.TableName);
this.BindingSource.DataSource = Context.TableName;
dataGridViewX1.DataSource = BindingSource ;
alarmBindingSource.ResetBindings(true);

but there is no change and new inserted row is not displayed.

Is there any way except re-new of DataContext(which spends long time)?

Please help.
Posted
Updated 24-Jun-10 1:33am
v2

1 solution

And what about Context.SubmitChanges()?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900