Retrieve data from a single DataGrid row?

Results 1 to 2 of 2

Thread: Retrieve data from a single DataGrid row?

  1. #1
    Join Date
    Dec 1969

    Default Retrieve data from a single DataGrid row?

    I want to return a single record from a database. The user hits my page with the recordID in the query string, and then I hit my SQL server with a query asking for the record matching that recordID.<BR><BR>Instead of displaying a datagrid containing a single record (with about 10 columns), I want to show each of the 10 values in a form-style layout similar to the form that the user used to submit the data in the first place.<BR><BR>I&#039;ve tried datareader, and although I managed to get it to work, it seems as though the datareader is the "old-fashioned" way to do things.<BR><BR>I&#039;ve also tried playing with retrieving values from a specific datagrid column, but the only examples I can find using the datagrid rely on the user clicking something in the grid to specify which row (item) they want info from.<BR><BR>How can I simply display data from cells from a single record?<BR><BR>Thanks,<BR><BR>MrRay<BR>Retrieve data from a single DataGrid row?<BR>

  2. #2
    Join Date
    Dec 1969
    Indianapolis, IN

    Default CROSSPOST (from ASP.NET forum) <eop>


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts