Get Value of cell from DetailsView

Discussion in 'ASP .Net Datagrid Control' started by Helmut Guenther, May 1, 2006.

  1. 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
     
    Helmut Guenther, May 1, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. K B
    Replies:
    0
    Views:
    546
  2. Chris
    Replies:
    4
    Views:
    5,389
    Chris
    Jul 29, 2007
  3. =?Utf-8?B?Q2hhcmxlc19t?=

    Get value of a field in detailsview

    =?Utf-8?B?Q2hhcmxlc19t?=, Sep 26, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    435
    =?Utf-8?B?Q2hhcmxlc19t?=
    Sep 26, 2007
  4. RJ
    Replies:
    1
    Views:
    244
    Eliyahu Goldin
    Feb 17, 2005
  5. Feege
    Replies:
    0
    Views:
    471
    Feege
    Dec 20, 2005
Loading...

Share This Page