Jump to content

refresh dataset or datareader


raviprakashg

Recommended Posts

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

when i add a new record the datagrid should show the new one also
For 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...