473,398 Members | 2,120 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,398 software developers and data experts.

MultiLine Grid View

Dear All,

I am still finding my way around Visual Web Developer, but I have hit a
problem.

I would like to either use a multiline gridview or a less detailed, but
multi record detail view, using the standard controls

eg

Record 1 ID Field 2 Field 3
Field 4
Field 5 Field 6
Record 2 ID Field 2 Field 3
Field 4
Field 5 Field 6
..
.. etc
..
Record n ID Field 2 Field 3
Field 4
Field 5 Field 6

Is it possible to achieve the above with the Standard Controls or will
I have to make my own using tables and if so what is the best way of
achieving this. I will want to edit, delete and insert records.

Thanks

Richard

Apr 27 '06 #1
4 2941
You need to use an ItemTemplate. In the template make your own multi-line
html layout, using a table being on of the options.

Eliyahu

"mosscliffe" <pa***********@googlemail.com> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.com...
Dear All,

I am still finding my way around Visual Web Developer, but I have hit a
problem.

I would like to either use a multiline gridview or a less detailed, but
multi record detail view, using the standard controls

eg

Record 1 ID Field 2 Field 3
Field 4
Field 5 Field 6
Record 2 ID Field 2 Field 3
Field 4
Field 5 Field 6
.
. etc
.
Record n ID Field 2 Field 3
Field 4
Field 5 Field 6

Is it possible to achieve the above with the Standard Controls or will
I have to make my own using tables and if so what is the best way of
achieving this. I will want to edit, delete and insert records.

Thanks

Richard

Apr 27 '06 #2
I am sure your answer is correct, but at the moment I have no idea how
to implement an Item Template. Is there a simple example using say two
fields from a record displayed on two separate lines in a grid view.

Thanks in advance

Richard

Apr 27 '06 #3
Richard,

I forgot to mention that you should use a repeater rather than a gridview:

<asp:Repeater id=Repeater1 runat="server" DataSource=...>

<HeaderTemplate>
<table>
</HeaderTemplate>

<ItemTemplate>
<tr><td>
<table>
<tr>
<td><%# Eval("ID") %></td>
<td><%# Eval("Field2") %></td>
<td><%# Eval("Field3") %></td>
</tr>
<tr>
<td colspan=3><%# Eval("Field4") %></td>
</tr>
<tr>
<td><%# Eval("Field5") %></td>
<td colspan=2><%# Eval("Field6") %></td>
</tr>
</table>
</td></tr>
</ItemTemplate>

<FooterTemplate>
</table>
</FooterTemplate>

</asp:Repeater>

Eliyahu

"mosscliffe" <pa***********@googlemail.com> wrote in message
news:11*********************@i39g2000cwa.googlegro ups.com...
I am sure your answer is correct, but at the moment I have no idea how
to implement an Item Template. Is there a simple example using say two
fields from a record displayed on two separate lines in a grid view.

Thanks in advance

Richard

Apr 27 '06 #4
Great - Thank you very much. It works well.

On looking into this further, I am confused yet again.

How do a repeater control and a datalist control differ. I want to be
able to use the same display to Insert, Update and Delete Records, so
which one should I use and can you point me to an example of their use.

I accept I am quite thick about this, but all these controls and
methods are a steep learning curve for me.

Thanks in advance

Richard

Apr 27 '06 #5

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

Similar topics

1
by: James | last post by:
wxpython 2.5.3 hi, anyone know how to make a multiline cell editor for wxgrid? thank you :) best regards, James
0
by: Justin | last post by:
Hi, First off, I must apologise for cross posting. I am having difficulty creating a pdf document using perl cgi to do substitution for multiline pdf form fields. I created a pdf template/file...
5
by: pmud | last post by:
Hi, I need to display columns in a data grid based on 7 different queries. Now I have 32 questions: 1. Is it possble to have 1 single data adapter with 7 queries & 1 data set or do I need to...
12
by: pmud | last post by:
Hi, I am using teh following code for sorting the data grid but it doesnt work. I have set the auto generate columns to false. & set the sort expression for each field as the anme of that...
0
by: ¿ Mahesh Kumar | last post by:
I have created a XML file as datasource which i 'm binding to a grid view control. During runtime I'm capturing items in XML file and displaying in a GRID VIEW control. but i want to remove or...
2
by: Umeshnath | last post by:
Hi, I have placed a grid view inside Atlas panel. On click of a button event, data is populated in the grid view, I want to add scroll bar instead of increasing the size of grid view. I have...
3
by: Richard Lewis Haggard | last post by:
I have a DataGridView which has a cell that is going to contain what might be a large amount of text data. The UI designed has decreed that each row will have a button that toggles the row's...
2
by: Mike | last post by:
I am trying to write a little program for my own use using VB2005 express edition. I have a list of peoples names in a file that I read into an array of strings. I am using a multiline textbox to...
0
by: zafar | last post by:
I don't know what property should be used for hiding colums in Data Grid, whereas in Data Grid View we have DataGridView1.Colums(index).Visible = False , But how can I hide Colums in Data Grid.....
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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.