Text Box Binding - Dataset

  • Thread starter Thread starter Shahriar
  • Start date Start date
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.
 
Shahriar,

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

Cor
 
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
 
Back
Top