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

data item with two rows in datagrid

I have a datagrid displaying a number of narrow columns and one very
wide one. It would make sense from a layout perspective to have two
rows per dataitem, and to put the long descriptive field beneath all
of the short, narrow ones in one large table cell that spans multiple
columns. Is there a way to do this with a datagrid, or should I make
the table manually with a repeater control?
Nov 18 '05 #1
2 1445
A template column with a two row table in it might accomplish what you're
after.

-Ryan

"John Hoge" <jh******@yahoo.com> wrote in message
news:d0**************************@posting.google.c om...
I have a datagrid displaying a number of narrow columns and one very
wide one. It would make sense from a layout perspective to have two
rows per dataitem, and to put the long descriptive field beneath all
of the short, narrow ones in one large table cell that spans multiple
columns. Is there a way to do this with a datagrid, or should I make
the table manually with a repeater control?

Nov 18 '05 #2
On 11 Jun 2004 08:48:29 -0700, John Hoge <jh******@yahoo.com> wrote:
I have a datagrid displaying a number of narrow columns and one very
wide one. It would make sense from a layout perspective to have two
rows per dataitem, and to put the long descriptive field beneath all
of the short, narrow ones in one large table cell that spans multiple
columns. Is there a way to do this with a datagrid, or should I make
the table manually with a repeater control?


Using a DataGrid, I think you'd end up doing the same thing, make the
table yourself (a 1 column datagrid). Since that's the case, I'd use a
Repeater instead, unless you need other features of the DataGrid like
paging, etc.

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #3

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

Similar topics

4
by: Mike L | last post by:
I'm open for any suggestions on how to better program this. I want the user to select a license from a combo box, cboPrivilege and then the user will click the add button, then a record will be...
3
by: vinayak | last post by:
Hi I am displaying data in Datagrid in ASP.NET with Edit/Update functionality for each row. On the same page I have 2 Button controls which submits the request to server. These button controls...
0
by: vinod babu via .NET 247 | last post by:
(Type your message here) -------------------------------- From: vinod babu Here my adding a new row code Private Sub cmdadd1_Click(ByVal sender As System.Object, ByVal e As...
1
by: Ryan Smith | last post by:
I'm trying to use a datagrid to display data and that has been easy - what i'm trying to do is have a rows background color change to red if the first databound column is 0 for the item. I have...
6
by: needin4mation | last post by:
I have a set of textboxes. If it is a new record the textboxes are empty and there is a save button. If this is an existing record, I have a search form, a datagrid and the user selects form the...
2
by: Brian Mitchell | last post by:
Ok, I know this is an elementary question but I have a data grid that is bound to a data table and I can't seem to find a way to match the selected row in the grid with it's respective row in the...
6
by: Rob | last post by:
I am trying to copy some data from one datagrid to another. The first datagrid containing data is called DocList. The blank Datagrid that I am trying to copy some data to is called DataGrid1. ...
1
by: .Net Sports | last post by:
the below itemdatabound function works , displays all the grand totals in the footer control of the datagrid: private void dglvboard_ItemDataBound(object sender,...
6
by: shil | last post by:
Hi, I am writing a windows app in .net 2003. I have a datagrid which gets data from a storedprocedure. My question is how can I update the data in the datagrid? I want to call another...
4
by: George | last post by:
Hi all, I am having trouble with updating my data in an Access database. here is my code: Imports System.Data.OleDb Dim AppPath As String = Mid(Application.ExecutablePath, 1,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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,...

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.