473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

DataGrid Webcontrol

I have a datasource with items, the DataGrid is bound to this datasource
through its DataSource property.

Each item in the datasource is displayed ok in the DataGrid, with one row
for each item.

However, I would like for each item in the datasource to be displayed over
two rows in the DataGrid, or the HTML output. My idea is to have f.ex. the
name in the first row, and in the second row the address, zipcode etc. is to
be displayed.

HTML output of items in datasource:
item1 - <table row>NAME</table row>
<table row>ADDRESS, ZIPCODE ETC.</table row>
item2 - <table row>NAME</table row>
<table row>ADDRESS, ZIPCODE ETC.</table row>

Is there a way to do this using the datagrid webcontrol??

- Magnus
Jun 4 '06 #1
1 1297
Split them into 2 tables and build a relationship.

chanmm

"Magnus" <no@spam.com> wrote in message news:44********@news.broadpark.no...
I have a datasource with items, the DataGrid is bound to this datasource
through its DataSource property.

Each item in the datasource is displayed ok in the DataGrid, with one row
for each item.

However, I would like for each item in the datasource to be displayed over
two rows in the DataGrid, or the HTML output. My idea is to have f.ex. the
name in the first row, and in the second row the address, zipcode etc. is
to be displayed.

HTML output of items in datasource:
item1 - <table row>NAME</table row>
<table row>ADDRESS, ZIPCODE ETC.</table row>
item2 - <table row>NAME</table row>
<table row>ADDRESS, ZIPCODE ETC.</table row>

Is there a way to do this using the datagrid webcontrol??

- Magnus

Jun 5 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dave | last post by:
I have a hyperlink column in a datagrid as follows <asp:HyperLinkColumn DataNavigateUrlField="OrderId" DataNavigateUrlFormatString="OrderDetails.aspx?Id={0}" DataTextField="Order"...
1
by: Eamon | last post by:
In the code-behind page I am building a table programmatically so that I can do some on-the-fly manipulation. I had found no way to use a datagrid with the solution I was seeking. is it possible to...
0
by: Tim K. | last post by:
After reading countless articles on these controls, I still don't have a clear direction. I need a control (similar to the Query grid in MS Access) that will hold table and column names selected...
6
by: EMW | last post by:
How can I detect on which cell the user has clicked on a datagrid webcontrol? rg, Eric
3
by: Mark | last post by:
Hi all, I have a datagrid with a few bound columns. I have one column where for each row, I would like to check a condition and disable the individual hyperlink associated with the datarow if the...
1
by: js | last post by:
I have a Datagrid control on my page. I want to attach a client JavaScript during the control's ItemCreated event in the CodeBehind like the following, but I can only attach the script to the Edit...
7
by: Rémi | last post by:
Hello. I have just gotten a client-side delete confirmation Javascript button to work, using this FAQ question as a basis (3rd question down, URL...
4
by: Frank | last post by:
Hello All, I ham using VS.NET 2003. Have followed instructions from http://gridviewguy.com/ArticleDetails.aspx?articleID=26 along with several other articles to no avail. I am pulling my hair...
2
by: simon_eyer | last post by:
Hi, I use a datagrid with a delete command. I create a validation on the delete command and i have a problem: the confirmation message is supposes to appear each time I do this command but it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.