raviprakashg Posted May 2, 2007 Share Posted May 2, 2007 Dear friends,i want to know how to Refresh the Dataset or Datareader when my database got new record, i am using C# as codebehindthanks in adv. Link to comment Share on other sites More sharing options...
aspnetguy Posted May 2, 2007 Share Posted May 2, 2007 A Dataset and DataReader are objects populated when you execute a command. I am not sure what you mean. Do you mean the dataset that is the Datasource of a DataGrid??? Link to comment Share on other sites More sharing options...
raviprakashg Posted May 2, 2007 Author Share Posted May 2, 2007 yes,when i add a new record the datagrid should show the new one also, iam not adding new row to dataset but in database, also if some one add the record in another machine that also should be added in my grid Link to comment Share on other sites More sharing options...
pulpfiction Posted May 2, 2007 Share Posted May 2, 2007 when i add a new record the datagrid should show the new one alsoFor this to happen you must call the set of code used to initially populate the datagrid.Say you have a function to populate the datagrid. Populate(). when the new record is inserted then after doing the database insertion again call Populate() and your grid will show all the records including the latest inserted one. Link to comment Share on other sites More sharing options...
raviprakashg Posted May 4, 2007 Author Share Posted May 4, 2007 okeythanks my friendursraviprakashg Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.