binding a textbox to a dataset

G

Guest

im building a sql-based database client and for some reason all of the tutorials on how to do so use a datagrid to modify the data. i want to use a textbox to display and be able to edit the data. the underlying framework seems to be in place: when i bind a datagrid to the dataset i am able to modify fields and update the database via the sqlDataAdapter.Update() function. however, when i bind the text property of my text field to the dataset, it displays the data ok upon Fill() but refuses to update. the Update() function returns reporting 0 rows updated sucessfully. please send any suggestions to my email at (e-mail address removed)
thank you
 
N

Nicholas Paldino [.NET/C# MVP]

billybob,

Can you post an example that shows the data not being updated?

Also, you might have to indicate to the binding context that you are
done editing the row (but I am not sure how your application is doing this,
so I can't say).


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

billybob said:
im building a sql-based database client and for some reason all of the
tutorials on how to do so use a datagrid to modify the data. i want to use a
textbox to display and be able to edit the data. the underlying framework
seems to be in place: when i bind a datagrid to the dataset i am able to
modify fields and update the database via the sqlDataAdapter.Update()
function. however, when i bind the text property of my text field to the
dataset, it displays the data ok upon Fill() but refuses to update. the
Update() function returns reporting 0 rows updated sucessfully. please send
any suggestions to my email at (e-mail address removed)
 

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