Using Single ObjectDataSource for GridView and DetailView ?

L

Luqman

I have used a single objectDataSource for GridView and DetailView, and when
I load the page, the GridView shows all the entries of Invoice, and
DetailView shows the 1st entry of Invoice, thats all ok.

Now what I want is to click on Select Button of DetailView and that row
should appear in DetailView, using the same ObjectDataSource, any idea ?

I tried using :

DetailView1.SelectedValue=GridView1.SelectedDataKey.Value

But it gives error: that DetailView1.SelectedValue is Readonly.

What am i Missing, please help ?

Best Regards,

Luqman
 

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top