Newbie Help - Move Dataset record pointer

D

Dave Sully

Hi

Newbie question, New to C# and ADO.net coming from a Foxpro background
so struggling with Data access in general..

Just a quick one..

Have databound listview, of a dataset and also textbox boxes bound to
the same dataset.

On the click event of the listview I want to move the record pointer in
the dataset to the row clicked upon in the list view, so the textboxes
reflect the listview.

Which in my case would is listView1.FocusedItem.Index.ToString()

Any pointers TIA
 
D

Dave Sully

CurrencyManager cm=
(CurrencyManager)this.BindingContext[dsRegion1,"region"];

cm.Position=Convert.ToInt32(listView1.FocusedItem.Index.ToString());

In case anyone hits this problem in the future ..
 

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