Click here to Skip to main content
15,888,816 members
Home / Discussions / C#
   

C#

 
AnswerRe: dll registration Pin
Hristo-Bojilov19-Mar-10 0:02
Hristo-Bojilov19-Mar-10 0:02 
AnswerRe: dll registration Pin
Pete O'Hanlon19-Mar-10 1:13
mvePete O'Hanlon19-Mar-10 1:13 
GeneralRe: dll registration Pin
#realJSOP19-Mar-10 1:54
mve#realJSOP19-Mar-10 1:54 
GeneralRe: dll registration Pin
Pete O'Hanlon19-Mar-10 2:07
mvePete O'Hanlon19-Mar-10 2:07 
GeneralRe: dll registration Pin
Wes Aday19-Mar-10 4:48
professionalWes Aday19-Mar-10 4:48 
QuestionGetChanges() & AcceptChanges() not working.... Pin
sjs4u18-Mar-10 23:00
sjs4u18-Mar-10 23:00 
AnswerRe: GetChanges() & AcceptChanges() not working.... Pin
Som Shekhar19-Mar-10 1:18
Som Shekhar19-Mar-10 1:18 
GeneralRe: GetChanges() & AcceptChanges() not working.... Pin
sjs4u19-Mar-10 1:48
sjs4u19-Mar-10 1:48 
hi,

let me clarify now.

string mySelectQuery = "SELECT * from Table1";
SqlConnection myConnection = new SqlConnection(connectionString);
SqlDataAdapter adpt = new SqlDataAdapter(mySelectQuery, myConnection);
dt = new DataTable();
myConnection.Open();
adpt.Fill(ds);
dt = ds.Tables[0];
dataGridView1.DataSource = dt;
myConnection.Close();


This is written on Refresh button.


Now there is another button where i written code to get only updated row from above datatable.

DataSet ds3 = new DataSet();
dt.AcceptChanges(); // dt delcared globally
ds3 = dt.GetChanges();


If I change one of the field in table1 directly from database and if i clicked on refresh button then it is showing the updated field. Now if i clicked on second button then I want only that updated row and want to store in dataset ds3.

Just let me know if i m doing any wrong from above code.




Thanks
sjs
GeneralRe: GetChanges() & AcceptChanges() not working.... Pin
Som Shekhar19-Mar-10 1:51
Som Shekhar19-Mar-10 1:51 
GeneralRe: GetChanges() & AcceptChanges() not working.... Pin
sjs4u19-Mar-10 2:04
sjs4u19-Mar-10 2:04 
GeneralRe: GetChanges() & AcceptChanges() not working.... Pin
Som Shekhar19-Mar-10 2:41
Som Shekhar19-Mar-10 2:41 
GeneralRe: GetChanges() & AcceptChanges() not working.... Pin
sjs4u19-Mar-10 2:56
sjs4u19-Mar-10 2:56 
GeneralRe: GetChanges() & AcceptChanges() not working.... Pin
Dave Kreskowiak19-Mar-10 3:08
mveDave Kreskowiak19-Mar-10 3:08 
QuestionThe resource loader cache doesn't have loaded MUI entry. Pin
Sunil G18-Mar-10 21:45
Sunil G18-Mar-10 21:45 
AnswerMessage Closed Pin
18-Mar-10 22:12
stancrm18-Mar-10 22:12 
GeneralRe: The resource loader cache doesn't have loaded MUI entry. Pin
Sunil G18-Mar-10 22:24
Sunil G18-Mar-10 22:24 
Question.ICO Creation Pin
ziwez018-Mar-10 21:39
ziwez018-Mar-10 21:39 
AnswerRe: .ICO Creation Pin
Anubhava Dimri18-Mar-10 21:50
Anubhava Dimri18-Mar-10 21:50 
AnswerRe: .ICO Creation Pin
AspDotNetDev18-Mar-10 23:37
protectorAspDotNetDev18-Mar-10 23:37 
AnswerRe: .ICO Creation Pin
Keith Barrow19-Mar-10 1:53
professionalKeith Barrow19-Mar-10 1:53 
QuestionHow to know if unmanaged object is not in memory? Pin
AksharRoop18-Mar-10 21:26
AksharRoop18-Mar-10 21:26 
AnswerRe: How to know if unmanaged object is not in memory? Pin
Som Shekhar19-Mar-10 1:19
Som Shekhar19-Mar-10 1:19 
GeneralRe: How to know if unmanaged object is not in memory? Pin
AksharRoop19-Mar-10 2:55
AksharRoop19-Mar-10 2:55 
GeneralRe: How to know if unmanaged object is not in memory? Pin
Dave Kreskowiak19-Mar-10 3:00
mveDave Kreskowiak19-Mar-10 3:00 
GeneralRe: How to know if unmanaged object is not in memory? Pin
Som Shekhar19-Mar-10 3:05
Som Shekhar19-Mar-10 3:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.