DataSet Field Value to textbox without databinding

E

Eddy Balan

HELLLPPPPP..!!!


I want to get a value from a DataSet field and putit into a textbox control
but without databinding..!!

Eddy
 
A

Armin Zingler

Eddy Balan said:
HELLLPPPPP..!!!


I want to get a value from a DataSet field and putit into a textbox
control but without databinding..!!


Textbox1.Text = MyDataset.Tables("tablename").Rows(0).ToString

The zero in "Rows(0)" is the zero-based number of the row in the table.
 
C

Cor

Hi Eddy,
I want to get a value from a DataSet field and putit into a textbox control
but without databinding..!!

If the select string is "Select firstField from db"

Textbox1.text=ds.tables(0).rows(0).("firstField").tostring

This is the first row, the second row would be

Textbox1.text=ds.tables(0).rows(1).("firstField").tostring

I hope this helps a little bit?

Cor
 

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