Get Value of cell from DetailsView

  • Thread starter Helmut Guenther
  • Start date
H

Helmut Guenther

1. I want to get the content (string) of a cell form DetailsView to put it
into a variable. The DetailsView1 is made with the designer in c#. The
following does not work:

string s=DetailsView1.["Name", DetailsView1.SelectedRow].Value.ToString();

2. I also want the the value of the SelectedRow of a GridView.

Any sugestion or a link to help me?
Helmut
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top