Sample code covering databinding for TextBox control on WinForms

G

Guest

I am looking for sample code to write databse-oriented applications using VB.NET and ADO.NET. All samples that I have found use the DataGrid control. I am particularly interested in using the TextBox and other standard controls using WinForms.

The application involves typical operations: add row, modify, and/or delete. Creating dataset, datatable, dataview, etc is OK, but how to bind the TextBox and other controls to the underlying dataview? How does one issue the update command after making changes in the textbox control?
 
L

Lloyd Sheen

If you are using VS 2003 do the following. Project/Add New Item/Data Form
Wizard. Following the instructions and you will have a form with binding
and buttons for all operations. Then you can change the location of the
items make it pretty etc. All the hard work is done for you. At the least
you will have code that you can look at as a basis for what you want to do.

Lloyd Sheen

I am looking for sample code to write databse-oriented applications using
VB.NET and ADO.NET. All samples that I have found use the DataGrid control.
I am particularly interested in using the TextBox and other standard
controls using WinForms.
The application involves typical operations: add row, modify, and/or
delete. Creating dataset, datatable, dataview, etc is OK, but how to bind
the TextBox and other controls to the underlying dataview? How does one
issue the update command after making changes in the textbox control?
 

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