Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Get Value of cell from DetailsView

Thread Tools

Get Value of cell from DetailsView

Helmut Guenther
Posts: n/a
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?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get value of a field in detailsview =?Utf-8?B?Q2hhcmxlc19t?= ASP .Net 0 09-26-2007 10:44 AM
how to get the value of a field in a detailsview? Chris ASP .Net 4 07-29-2007 08:34 PM
DetailsView - Changing to Insert Mode (Not By Using the Insert Button In the DetailsView Control) Feege ASP .Net Web Controls 0 12-20-2005 12:28 AM
How to set cell background based on cell value when datagrid is displayed RJ ASP .Net Datagrid Control 1 02-17-2005 09:37 PM
moving to cell Y if cell X has value Z. Clarke Rice Computer Support 0 06-30-2003 09:35 AM