Text Box Binding - Dataset

S

Shahriar

The following statement binds data to a dataset
tempTable = ds.Tables(0)
TextBox1.DataBindings.Add("text", tempTable, "casenumber")

If my dataset contains 50 records, how does one bind to record # 21. When
my form is loaded, the first record from the dataset is always displayed in
the textbox .

Thanks.
 
C

Cor Ligthert

Shahriar,

Use the currencymanager
Typed here so watch typos
\\
Directcast(Bindingcontext(ds.tables(0)),Currencymanager).position = 20
//
I hope this helps?

Cor
 
S

Shahriar

Cor

Much thanks.

Shahriar

Cor Ligthert said:
Shahriar,

Use the currencymanager
Typed here so watch typos
\\
Directcast(Bindingcontext(ds.tables(0)),Currencymanager).position = 20
//
I hope this helps?

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