Can you display data from a single row in multiple rows using a GridView?

I am currently displaying 3 fields in a gridview and it looks something like this:

First Name  Last Name  Age
========  ========  ===
Chris          Messineo    40
John           Smith         35
Tim            Jones         30
I need to modify the gridview and display a bio, but I want it to display on 1 full line below each line, like this:
First Name  Last Name  Age
========  ========  ===
Chris          Messineo    40
Chris was born in a log cabin...
John           Smith         35
At the age of 10 John invented...
Tim            Jones         30
Mr. Jones was always a curious child...
Is this even possible in a GridView?  And if so, any suggestions on where to start?
Thanks a lot,
Chris Messineo
p.s.  I still need to have sorting and paging work, although I do not need to sort on the bio info.
3/5/2007 11:23:15 PM 72751 articles. 3 followers. Follow

3 Replies

Similar Articles

[PageSpeed] 5

Dear, friend:

According to your scenario. i recommend you to create a FormView with two Rows. You can put the general GridView into the first row and put a Literal control in the second row for displaying the bio info

I hope the above information will be helpful. If you have any issues or concerns, please let me know. It's my pleasure to be of assistance

Best Regards,
Rex Lin
Microsoft Online Community Support

If there is any question or the issue is not resolved, please feel free to mark the thread as not resolved
3/6/2007 1:54:08 AM

Thanks for the suggestion, but I'm not sure it answers my question?  If I understand your answer, it would only give me the info for 1 person, but I need it for mulitple people.

So, I am still wondering, Is it possible to do this using a GridView? 

3/7/2007 10:11:34 PM

Easy way is to use a DataList and you will be the real master and do whatever you want...



3/7/2007 10:43:21 PM

Similar Artilces:

Add new controls to a gridview row; when editing that row using the edit row feature in the gridview control.
Hi all  I have a questions that looks hard / complex to me, and i know you can help me in this. Q {  I have row in a Gridview and i have an edit option to it. I press the edit button, to edit the values in that row and update data all the way back to the database. Now when i press the edit button, i want a drop down list to be displayed that contain values for a particular field in my grid view. (for now only plain text boxes appear.) } I hope you understand my question, all i need to do is replace the text box controls with a dropdown list when i am editing a row in ...

Display multiple table rows in a single Gridview row?
I have two tables:   transportreply |id| |submitby| |transport| 2008 |id| |liftclub| |liftclubsize| |workfromhome| |leave| |submitby| In the transportreply, there are multiple rows with information submitted by the same user originating from a checkboxlist.  What I need is an inner join of the two tables that display all the results on one Gridview row.  Currently my code looks like this: Results.aspx<table align="center" width="900" bgcolor="#E6E6E6" class="table3"><tr><td><div class="td4&q... problem: i can not view image data for the rest of my table rows except the image for the first row but i can read all the other non image fields for all rows.
Hi i have a table with the following fields imgdata........image imgtitle.........varchar(max) imgType........varchar(max) imgLength.....bigint i have no problem with uploading the image but viewing the uploaded image(s) in a gridview has caused me great pain. The probelm is i have two pages. page1 grabs the image to display and page2 has a gridview that displays the grabed image. I wanted to have an sql statement like SELECT * FROM mytable WHERE incident_id=someValue. IF i have 5 records in this table and i view page2 ...

Data Controls insert rows into gridview then insert rows from gridview into SQL Table
Hello there, I'm still new at performing miracles with code . Currently I am having trouble with my latest coding adventure I have a web application which records jobs and labour assigned to jobs. The issue in particular I'm having is the way in which labour is to be assigned. I want to use standard controls (Textbox, Dropdownlist) to record the values into a gridview (ie,put multiple rows into the gridview using the controls). Then, when all the inserting is complete, the user clicks a submit button to insert all the rows from the gridview into a database table. The reason for...

GridView linked to TempFile
I have a Gridview that is linked to a TempFile while items are being added. Once the user hits the submit button can I use a ForEach loop and read each gridrow and write the row to the main file. I won't being taking all the columns back to the main file so I can't use a copy gridview but must read each row ... extract the columns that are need for the main file and then use a objectdatasource.insertitem(true) command. If I can use the objectdatasource -- how would I set the objectdatasource's parameters? Thanks, John  You could write an select/insert method into your ob...

how to display multiple rows of a table in single row
DECLARE @emp VARCHAR(1024) declare @emp1 varchar(1024)declare @emp2 varchar(1024)SELECT @emp1 = COALESCE(@emp1 + ',', '') + cast(eid as varchar(10)),@emp = COALESCE(@emp + ',', '') + ename ,@emp2 = COALESCE(@emp2 + ',', '') + desigFROM emp SELECT eid=@emp1,ename = @emp,desig=@emp2    anitha123:DECLARE @emp VARCHAR(1024) declare @emp1 varchar(1024)declare @emp2 varchar(1024)SELECT @emp1 = COALESCE(@emp1 + ',', '') + cast(eid as varchar(10)),@emp = COALESCE(@emp + ',', '') + ename ,@emp2 = COALESCE(@emp...

Multiple grid rows per Data row in GridView
I have a dataset that is binded to a gridview. The dataset has 5 fields and a description. I want to display 1 row for the 5 short fields and 1 row underneath it for the description. (per record)   For example: ID Name  Surname Field3 Field 4 1   John     Smith      blah    blah     This is the long description for  John Smith spanning 5 cells 2   Peter    Parker     blah    blah     This is t...

Display Multiple Datasets in a Single GridView or Use a Timer Control to Display Multple Results
I am trying to get the gridview to display the results of multiple dataset that containg SQL Queries. I have a combobox that allows the user to select a Query to run and then it returns the results to the datagrid, however I can not get it to display multiple results in the same gridview. The following works now to display one along with else if but I need to display all selected at the sametime. I have been advise that this may not be possible, and if it's not can someone direct me on using a Timer Control to display multiple DataSet results in various intervals on the same DataGrid. ...

Gridview row 0 selected, but data for row+1 is displayed... ??
Hello. Here's a rather interesting dilemma--hopefully easy to solve? Though I'm stumped for the moment, so any help will be greatly appreciated. I have a gridview with master records listed. The records are acquired using L2S and a sproc that applies Row_Number() to the results for custom paging. The resultset looks fine. It binds to the gridview as expected (displaying data for rows 1 through 5). Each master record has a "select" column to allow the user to select which master record to display in the detail record view. When select is clicked, the child records are&...

add data from multiple rows in table to one row in gridview
 heya is there any way of adding data from multiple rows in table to one row in gridview. eg. ipc                 column 1 ,            2 ,                       3,                 4  1,    11111                 33                  &nbs...

How to display multiple data within a single row?
    I would like to be able to display multiple data within a single row but not all row will have multiple data. Look at column 3 for example. These data will be retrieve from the database and the user has the option to add additional record with either 1 or more projects for a specific state. Is there a way to display this way within a gridview or datalist, repeater, etc? 1 2 3 4 California 12/12/1980 Project 1 Project 2 Project 3 Worker:12 Florida 08/09/2001 Project 1 Worker:3 Texas 01/10/1982 Project 1 Project 2 Wo...

Using repeater control with single row data
Hi, I am using repeater control since it gives me the flexibility to seperate the interface in an ascx file and while loading the repeater control dynamically, I can attach the template file to it using the below code: rptCtrl = new Repeater() rptCtrl.DataSource = myDataTable rptCtrl.ItemTemplate = Page.LoadTemplate("myTemplate.ascx") Now, I have a situation in which I am retrieving a single row instead of multiple rows. I was wondering it I could use any other control that gives me better performance over repeater control for single row datasources and yet p...

How to delete row from GridView control
Hello,  I am working on an ASP.NET 2.0 app, and I am trying to wire up a "Delete" button to a gridview control on a form. Here is the code for the ASP :  <asp:GridView ID="gvInConditions" runat="server" AutoGenerateColumns="true" OnRowDeleting="gvInConditions_RowDeleting" DataKeyNames="Condition_ID" >         <Columns>                <asp:CommandField ButtonType="Button" SelectText=&...

Arranging data on multiple rows into a sigle row (converting rows into columns)
Hello, I have a survey (30 questions) application in a SQL server db. The application uses several relational tables. The results are arranged so that each answer is on a seperate row: user1   answer1user1   answer2user1   answer3user2   answer1user2   answer2user2   answer3 For statistical analysis I need to transfer the results to an Excel spreadsheet (for later use in SPSS). In the spreadsheet I need the results to appear so that each user will be on a single row with all of that user's answers on...

Web resources about - Can you display data from a single row in multiple rows using a GridView? -

GridView SelectedItem Binding Gotcha in WinRT
Last night when I was doing some WinRT hacking I was trying to setup databinding to the selected item in the GridView control and I ran into ...

CNW Group
Home Services Beyond the Wire About CNW Financials Webcasts Events My CNW All News Releases Advanced Search Gridview Latest News Releases All ...

CNW Group
... Services Beyond the Wire About CNW my CNW CNW Access CNW Directories Financials Webcasts Events my CNW All News Releases Advanced Search Gridview ...

CNW Group
Home Services Beyond the Wire About CNW Financials Webcasts Events My CNW All News Releases Add a Filter Gridview Latest News Releases All Today ...

New CmdLets of Powershell 2.0
New CmdLets of Powershell 2.0

Price Drop: Softbox
... objects- create product reflection- changing the background with something more interestingUse it as:- softbox- honeycomb softbox- gridview ...

Profile.aspx: ASP Alliance
.NET,ASP,ASP.NET,SQL,XML,HTML,ADO,ADO.NET,JavaScript,JScript,CSharp,VBScript and VB tutorials from AspAlliance.

Quick Answers - CodeProject
Questions - Free source code and tutorials for Software developers and Architects.; Updated: 25 Oct 2012 - Upcoming stories is a community based news site edited by our members. It specialises in .NET development techniques, technologies and tools including ...

View Features - ExtendASP
Call 847-681-9827 or Request a Demo View Features Testimonials Pricing About Us Coming Soon ExtendASP exposes every feature, more than any other ...

Resources last updated: 1/7/2016 10:31:46 AM