simply data binding question, where is the datarow?

S

Sam Carleton

I have followed the "Walkthrough: Displaying Data in a Windows
Form Using a Parameterized Query" and would like to modify it to
update a row.

I have seen others posting stating that with textboxes, one must
first call the BeginEdit() and EndEdit() on the DataRow object.
The problem I am having it finding said DataRow object. The
walkthrough has me create Data Connection, then a Data Adapter,
and finally a Dataset. To update the bounded text fields, the
code looks like this:

oleDbDataAdapter1.SelectCommand.Parameters["state"].Value = txtStateParameter.Text;
dsAuthors1.Clear();
oleDbDataAdapter1.Fill(dsAuthors1);

I don't see a BeginEdit()/EndEdit() method on either the Data
Adapter nor on the Dataset. Where do I find the Datarow object?

Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top