Easy one, displaying field in a textbox

  • Thread starter Thread starter Bonzol
  • Start date Start date
B

Bonzol

vb.net 2003, 1.1. Windows Application. Access Database

Hey, I just want to display a field from a dataset(project1)

i've been trying

textbox1.text = project1.project.projdesccolumn.tostring

but all that does is display the column name

I know this is really simple, but I just cant find the correct syntax
to do it.

thanx in advance
 
Bonzol,

Be aware that you are using a strongly typed dataset. Tell that next time.
Most of us did not use that in version 2003.

textbox1.text = project1.project.projdesccolumn.tostring

What you tell is to use
TheDataset.TheDataTable.AProjectColumn.ToString

What you probably want to do is
TheDataset.TheDataTable.TheRow(ByTheIndex)(TheColumnName as String).ToString
The Columname as string can as well be
The Dataset.TheDataTable.TheColumnName, but that is a lot of typing.

I hope this helps

Cor
 
Back
Top