473,394 Members | 1,746 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,394 software developers and data experts.

Possible to arrange the fields for each record of a GridView?

Hello,

I've got the Gridview control working displaying two fields from my
database, but the fields are displayed horizontally next to each other. How
can I display my 'Text' underneath my image?

I've looked at the propertires of the columns (via the 'Edit Columns'
smart-tag feature) but can't seem to find anything here.

Thank-you in advance.

Jack.
May 21 '06 #1
2 1387
Jack,

You need to use a template column. Make an ItemTemplate with an html layout
for an image and a text element. Databind the image element to the image
field and the text element to the text field.

Eliyahu

"Jack" <ja**@nospam.com.uk> wrote in message
news:44******@quokka.wn.com.au...
Hello,

I've got the Gridview control working displaying two fields from my
database, but the fields are displayed horizontally next to each other.
How can I display my 'Text' underneath my image?

I've looked at the propertires of the columns (via the 'Edit Columns'
smart-tag feature) but can't seem to find anything here.

Thank-you in advance.

Jack.

May 21 '06 #2
Thanks. It worked like a treat!

Jack.

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:uR**************@TK2MSFTNGP03.phx.gbl...
Jack,

You need to use a template column. Make an ItemTemplate with an html
layout for an image and a text element. Databind the image element to the
image field and the text element to the text field.

Eliyahu

"Jack" <ja**@nospam.com.uk> wrote in message
news:44******@quokka.wn.com.au...
Hello,

I've got the Gridview control working displaying two fields from my
database, but the fields are displayed horizontally next to each other.
How can I display my 'Text' underneath my image?

I've looked at the propertires of the columns (via the 'Edit Columns'
smart-tag feature) but can't seem to find anything here.

Thank-you in advance.

Jack.


May 24 '06 #3

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

Similar topics

6
by: allyn44 | last post by:
HI--what I am trying to do is 2 things: 1. Open a form in either data entry mode or edit mode depending on what task the user is performing 2. Cancel events tied to fields on the form if I am in...
3
by: igotyourdotnet | last post by:
I'm using a gridview and I have it formatted using sub headings. now I need to get totals for each sub heading. Is this possible? example: BMW (sub heading) 25,000 14,252 25,000 total:...
1
by: K B | last post by:
I would like to create a gridview as below: Project Name 1-1 1-2 1-3 1-4 1-5 1-6 Project 1 BLUE BLUE BLUE BLUE GREEN GREEN more projects I would like to fill the...
4
by: Tomasz | last post by:
Hello Developers, Here is interesting problem I just came across: how do I wire a GridView control programmatically? Here is my sample code using Object Data Source: protected void...
4
by: beton3000 | last post by:
Hello! I'm building a GridView using code to add template fields, because there is a random number of columns in result set from database. I'm using a class with ITemplate interface for defining...
2
by: bogdan | last post by:
Hi, Can a single GridView be 'connected' to DetailsView that renders itself differently based on the currently selected row? I have a GridView with rows that could be displayed in the same way...
4
by: EManning | last post by:
Using A2003. I've got an FE with a main form with a subform. The subform is a mixture of bound and unbound fields. The main form is unbound and all it has on it is a combobox to choose a...
2
by: EManning | last post by:
I posted a question on 5/5/08 asking how to trap an error caused by multiple users trying to access the same patient. Here's what I posted: "Using A2003. I've got an FE with a main form with a...
4
by: Ken Fine | last post by:
I'm making an administrative interface that lists records in a GridView. For *each* row in the gridview, I would there to be two interface elements in addition to some information associated with...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.