Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid Update Not working w/ OleDbDataAdapter

Status
Not open for further replies.

bubberz

Programmer
Dec 23, 2004
117
US
Our code for the DataGrid1_UpdateCommand is as follows:

OleDbDataAdapter1.Update (DsGrid1, "Info")
'you can see above the dataadapter, the dataset, and table
'next we do the Fill method below
OleDbDataAdapter1.Fill(DsGrid1, "Info")
DataGrid1.DataBind()

If we click the Update button, it's not updating
It simply acts as if the page did a post back, but nothing happens.

In the Page_Load routine, we've got:
If (Not IsPostBack) Then
'DataGrid1.DataBind()
OleDbDataAdapter1.Fill(DsGrid1, "Info")
DataGrid1.DataBind()
 
If we click the Update button, it's not updating
It simply acts as if the page did a post back, but nothing happens.

acts as if it does a post back, or does a postback?

Set a break in the dataadapter.fill, and see if when you push update it stops there in the code.
 
We know the fill isn't getting set back to the database.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top